X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Makefile.PL;h=f91e00fb59d78923400d66af7f22993bf7588b40;hb=0d7058280090c294f5fe0eb9ac5251816dd31d30;hp=340230745f91655f3481f38fcfc80d0ac1723fcc;hpb=5014c9a6dd5ac20b6e70b51f3784e92b9b1207fd;p=perl%2Fmodules%2FLexical-Types.git diff --git a/Makefile.PL b/Makefile.PL index 3402307..f91e00f 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,4 +1,4 @@ -use 5.008003; +use 5.008_004; use strict; use warnings; @@ -23,19 +23,28 @@ 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"; # Threads, Windows and 5.8.x don't seem to be best friends if ($^O eq 'MSWin32' && "$]" < 5.009) { - push @DEFINES, '-DLT_MULTIPLICITY=0'; + push @DEFINES, '-DXSH_MULTIPLICITY=0'; } # Fork emulation got "fixed" in 5.10.1 -if ($^O eq 'MSWin32' && "$]" < 5.010001) { - push @DEFINES, '-DLT_FORKSAFE=0'; +if ($^O eq 'MSWin32' && "$]" < 5.010_001) { + push @DEFINES, '-DXSH_FORKSAFE=0'; } @DEFINES = (DEFINE => join ' ', @DEFINES) if @DEFINES; @@ -58,6 +67,7 @@ my %BUILD_REQUIRES = ( 'ExtUtils::MakeMaker' => 0, 'Test::More' => 0, 'constant' => 0, + 'lib' => 0, %PREREQ_PM, ); @@ -88,7 +98,7 @@ WriteMakefile( @DEFINES, BUILD_REQUIRES => \%BUILD_REQUIRES, PREREQ_PM => \%PREREQ_PM, - MIN_PERL_VERSION => '5.008003', + MIN_PERL_VERSION => '5.008004', META_MERGE => \%META, dist => { PREOP => "pod2text -u $file > \$(DISTVNAME)/README",