From: Vincent Pit Date: Sat, 2 May 2009 15:00:30 +0000 (+0200) Subject: Disable thread safety for 5.8.x on Windows X-Git-Tag: v0.09~6 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FScope-Upper.git;a=commitdiff_plain;h=b47fa43cec4edf2bbec5454fe9a8738e1084f9bd Disable thread safety for 5.8.x on Windows --- 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,