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~15 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FLexical-Types.git;a=commitdiff_plain;h=edd9e21a17be0119fc8cdb76fd2d0d26cf913463 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 4ab4e03..0a318e2 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";