]> git.vpit.fr Git - perl/modules/Scope-Upper.git/commitdiff
Disable thread safety for 5.8.x on Windows
authorVincent Pit <vince@profvince.com>
Sat, 2 May 2009 15:00:30 +0000 (17:00 +0200)
committerVincent Pit <vince@profvince.com>
Sat, 2 May 2009 15:00:30 +0000 (17:00 +0200)
Makefile.PL

index 48eace94fbc2da1a9a33e6533eda04be96305a08..d482e44ffa7c53e1759f7fdcff663746da214040 100644 (file)
@@ -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,