summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Signes <rjbs@cpan.org>2014-07-11 22:00:43 -0400
committerRicardo Signes <rjbs@cpan.org>2014-07-11 22:00:43 -0400
commit5a6d8dbdd0fbfe6ae38db7ba2d88c70a1459cb4e (patch)
tree9706f16de43bf22013f8bcf2ca3d6ec281ad11ac
parent25b4c20b7a94a2449c1a9350dd6bce9bf030d14d (diff)
downloadperl-5a6d8dbdd0fbfe6ae38db7ba2d88c70a1459cb4e.tar.gz
cope with gcc -g3 with Compress-Raw-Zlib
change from https://rt.cpan.org/Ticket/Display.html?id=88936
-rw-r--r--cpan/Compress-Raw-Zlib/Makefile.PL9
1 files changed, 8 insertions, 1 deletions
diff --git a/cpan/Compress-Raw-Zlib/Makefile.PL b/cpan/Compress-Raw-Zlib/Makefile.PL
index 2b7c2613d7..e2e9ed8dbe 100644
--- a/cpan/Compress-Raw-Zlib/Makefile.PL
+++ b/cpan/Compress-Raw-Zlib/Makefile.PL
@@ -6,6 +6,7 @@ require 5.006 ;
use private::MakeUtil;
use ExtUtils::MakeMaker 5.16 ;
use ExtUtils::Install (); # only needed to check for version
+use Config;
my $ZLIB_LIB ;
my $ZLIB_INCLUDE ;
@@ -14,6 +15,10 @@ my $OLD_ZLIB = '' ;
my $WALL = '' ;
my $GZIP_OS_CODE = -1 ;
my $USE_PPPORT_H = ($ENV{PERL_CORE}) ? '' : '-DUSE_PPPORT_H';
+my $OPTIMIZE = $Config{'optimize'};
+if ($Config{'gccversion'} and $OPTIMIZE =~ /-g (gdb)? 3/x) {
+ $OPTIMIZE =~ s/-g(gdb)?3/-g/g; # [88936] out of memory with -g3 since 2.062
+}
#$WALL = ' -pedantic ' if $Config{'cc'} =~ /gcc/ ;
#$WALL = ' -Wall -Wno-comment ' if $Config{'cc'} =~ /gcc/ ;
@@ -81,7 +86,9 @@ WriteMakefile(
? zlib_files($ZLIB_LIB)
: (LIBS => [ "-L$ZLIB_LIB -lz " ])
),
-
+
+ OPTIMIZE => $OPTIMIZE,
+
INSTALLDIRS => ($] >= 5.009 && $] < 5.011 ? 'perl' : 'site'),
META_MERGE => {