From: Vincent Pit Date: Tue, 24 Mar 2015 19:54:30 +0000 (-0300) Subject: Update the ActivePerl/gcc-3.4 hack for EUMM 7.04 X-Git-Tag: v0.27~6 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FScope-Upper.git;a=commitdiff_plain;h=515346d5652e6f39bd6329463e4b0245d5368902 Update the ActivePerl/gcc-3.4 hack for EUMM 7.04 Starting from this version, PERL_ARCHIVE is quoted so we can no longer set it to the empty string. Instead, we remove all occurrences of PERL_ARCHIVE in the linking step section of the Makefile, which is OK since we specify the perl DLL in other variables. This new technique is still valid for older versions of EUMM. --- diff --git a/Makefile.PL b/Makefile.PL index 3860b55..52a9d40 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -35,7 +35,16 @@ if ($^O eq 'MSWin32' and not grep /^LD[A-Z]*=/, @ARGV) { @Config{qw}; $macro{LDDLFLAGS} = "$lddlflags $libdirs $libperl"; $macro{LDFLAGS} = "$ldflags $libdirs $libperl"; - $macro{PERL_ARCHIVE} = '', + eval <<' MY_SECTION'; + package MY; + sub dynamic_lib { + my $self = shift; + my $inherited = $self->SUPER::dynamic_lib(@_); + $inherited =~ s/"?\$\(PERL_ARCHIVE\)"?//g; + return $inherited; + } + MY_SECTION + die $@ if $@; } } print $is_gcc_34 ? "yes\n" : "no\n";