X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Makefile.PL;h=a4a665b8c569fef5af51d2c17607370229f0952f;hb=166e85102e0d03c7ab5e21cba28e131c2d87de54;hp=97be25760df2544e59e0f49f8e0175a6c1a1f09b;hpb=057c4a6806e4d489d099d9244aaf4e71cf05493a;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/Makefile.PL b/Makefile.PL index 97be257..a4a665b 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"; @@ -74,7 +83,9 @@ my %BUILD_REQUIRES = ( 'Carp' => 0, 'Config' => 0, 'ExtUtils::MakeMaker' => 0, + 'POSIX' => 0, 'Test::More' => 0, + 'lib' => 0, %PREREQ_PM, );