| 1 |
Description: This patch removes the -m32 options that the build process |
| 2 |
adds to 64 bit non-arm builds. This option is not present in most of |
| 3 |
Debian's 32 bit arches and makes the build fail there, and it is not |
| 4 |
needed on Debian's 64 bit arches. |
| 5 |
Bug: https://github.com/jacquesg/p5-Git-Raw/issues/199 |
| 6 |
Author: Marc Haber <[email protected]> |
| 7 |
Reviewed-by: gregor herrmann <[email protected]> |
| 8 |
Last-Update: 2022-10-29 |
| 9 |
|
| 10 |
--- a/inc/MakeMaker.pm |
| 11 |
+++ b/inc/MakeMaker.pm |
| 12 |
@@ -229,7 +229,10 @@ |
| 13 |
# building with a 32-bit perl on a 64-bit OS may require this (supported by cc and gcc-like compilers, |
| 14 |
# excluding some ARM toolchains) |
| 15 |
if ($Config{ptrsize} == 4 && $Config{archname} !~ /arm/) { |
| 16 |
|
| 17 |
+ # ccflags.='-m32' removed since Debian does not need |
| 18 |
+ # this on 64 bit arches, and the presence of the option |
| 19 |
+ # makes the build fail on 32 bit arches |
| 20 |
+ $ccflags .= ''; |
| 21 |
} |
| 22 |
} elsif ($is_sunpro) { |
| 23 |
# probably the SunPro compiler, (try to) enable C99 support |
| 24 |
--- a/Makefile.PL |
| 25 |
+++ b/Makefile.PL |
| 26 |
@@ -216,7 +216,10 @@ |
| 27 |
# building with a 32-bit perl on a 64-bit OS may require this (supported by cc and gcc-like compilers, |
| 28 |
# excluding some ARM toolchains) |
| 29 |
if ($Config{ptrsize} == 4 && $Config{archname} !~ /arm/) { |
| 30 |
|
| 31 |
+ # ccflags.='-m32' removed since Debian does not need |
| 32 |
+ # this on 64 bit arches, and the presence of the option |
| 33 |
+ # makes the build fail on 32 bit arches |
| 34 |
+ $ccflags .= ''; |
| 35 |
} |
| 36 |
} elsif ($is_sunpro) { |
| 37 |
# probably the SunPro compiler, (try to) enable C99 support |