X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Makefile.PL;h=52a9d4043f2cb71d7aa89b325e7b0a8cd4c6cec2;hb=515346d5652e6f39bd6329463e4b0245d5368902;hp=d6d3c417c9268bf3b3ae2a5fa1b62999a8bdf42d;hpb=0c8950c666f3aa77c89d007873cd7a278e191b95;p=perl%2Fmodules%2FScope-Upper.git diff --git a/Makefile.PL b/Makefile.PL index d6d3c41..52a9d40 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,4 +1,4 @@ -use 5.006001; +use 5.006_001; use strict; use warnings; @@ -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";