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.15~21 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Fautovivification.git;a=commitdiff_plain;h=ccae126e91d7ecabe5a5648bc4810fede4cc2c30;hp=aebbab9a783906dacf7815fec6b1da3f17ed3aca 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 6628bca..664fa08 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";