X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FVariable-Magic.git;a=blobdiff_plain;f=Makefile.PL;h=aa39d2229314413157745eac87a7d79cb93aaa09;hp=323e83d94bb2c919578309ef457ed20f1a047186;hb=03134cc40a83015fe9fc077cc903fabb245ea4c8;hpb=cf730c379ab00aa65d4ed8f08e2dae34a35e3ffc diff --git a/Makefile.PL b/Makefile.PL index 323e83d..aa39d22 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -36,7 +36,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";