Package: libgit-raw-perl / 0.87+ds-1

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