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: rt100068~6 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Findirect.git;a=commitdiff_plain;h=0e769ced6ddb1d71cb10bd8e527971f8748a3764 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 f0c9891..697b531 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -23,7 +23,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";