X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Makefile.PL;h=d482e44ffa7c53e1759f7fdcff663746da214040;hb=b47fa43cec4edf2bbec5454fe9a8738e1084f9bd;hp=48eace94fbc2da1a9a33e6533eda04be96305a08;hpb=95f528be96f28fc6246faddb1e18d7fe2d0a043b;p=perl%2Fmodules%2FScope-Upper.git diff --git a/Makefile.PL b/Makefile.PL index 48eace9..d482e44 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -2,6 +2,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, '-DSU_MULTIPLICITY=0'; +} + +@DEFINES = (DEFINE => join ' ', @DEFINES) if @DEFINES; + my $dist = 'Scope-Upper'; my %META = ( @@ -27,6 +36,7 @@ WriteMakefile( VERSION_FROM => 'lib/Scope/Upper.pm', ABSTRACT_FROM => 'lib/Scope/Upper.pm', PL_FILES => {}, + @DEFINES, PREREQ_PM => { 'Exporter' => 0, 'XSLoader' => 0,