X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Findirect.git;a=blobdiff_plain;f=Makefile.PL;h=2a617fa5377e173bbcf6bb294229fcba5c05e2b5;hp=d97f16f35d132868138192e732be3034505a064b;hb=2635de8af7a889878b35ebed184d2f7b3c9c4ac0;hpb=3a2bd23781446db6c77c517bf8898e226859c4f7 diff --git a/Makefile.PL b/Makefile.PL index d97f16f..2a617fa 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -4,6 +4,20 @@ use strict; use warnings; use ExtUtils::MakeMaker; +my @DEFINES; + +# Threads, Windows and 5.8.x don't seem to be best friends +if ($^O eq 'MSWin32' && $^V lt v5.9.0) { + push @DEFINES, '-DI_MULTIPLICITY=0'; +} + +# Fork emulation got "fixed" in 5.10.1 +if ($^O eq 'MSWin32' && $^V lt v5.10.1) { + push @DEFINES, '-DI_FORKSAFE=0'; +} + +@DEFINES = (DEFINE => join ' ', @DEFINES) if @DEFINES; + my $dist = 'indirect'; my %META = ( @@ -18,7 +32,7 @@ my %META = ( bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist", homepage => "http://search.cpan.org/dist/$dist/", license => 'http://dev.perl.org/licenses/', - repository => "http://git.profvince.com/perl/modules/$dist.git", + repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git", }, ); @@ -29,6 +43,7 @@ WriteMakefile( VERSION_FROM => 'lib/indirect.pm', ABSTRACT_FROM => 'lib/indirect.pm', PL_FILES => {}, + @DEFINES, PREREQ_PM => { 'XSLoader' => 0, },