X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Findirect.git;a=blobdiff_plain;f=Makefile.PL;h=b9279479f76f2c58a499ee650198e5bed62e5b5a;hp=f1332ecf1c8cab287ad4b6600ecad3aff1840e50;hb=8e1c49f42da7671812398f92d819da04c7a41e1b;hpb=19ca5f7be6790f6520f3c37e178f9fcf7596f628 diff --git a/Makefile.PL b/Makefile.PL index f1332ec..b927947 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -4,6 +4,15 @@ 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'; +} + +@DEFINES = (DEFINE => join ' ', @DEFINES) if @DEFINES; + my $dist = 'indirect'; my %META = ( @@ -18,7 +27,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/?p=perl/modules/$dist.git", + repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git", }, ); @@ -29,6 +38,7 @@ WriteMakefile( VERSION_FROM => 'lib/indirect.pm', ABSTRACT_FROM => 'lib/indirect.pm', PL_FILES => {}, + @DEFINES, PREREQ_PM => { 'XSLoader' => 0, },