]> git.vpit.fr Git - perl/modules/Lexical-Types.git/blobdiff - Makefile.PL
Disable thread safety for 5.8.x on Windows
[perl/modules/Lexical-Types.git] / Makefile.PL
index d2f4477e4fd4e313750bdecd0d2eac22929a2643..3e89d726b6ae68402caf9a7ccdad2e6cf3e07971 100644 (file)
@@ -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, '-DLT_MULTIPLICITY=0';
+}
+
+@DEFINES = (DEFINE => join ' ', @DEFINES) if @DEFINES;
+
 my $dist = 'Lexical-Types';
 
 my %META = (
@@ -30,6 +39,7 @@ WriteMakefile(
     VERSION_FROM     => 'lib/Lexical/Types.pm',
     ABSTRACT_FROM    => 'lib/Lexical/Types.pm',
     PL_FILES         => {},
+    @DEFINES,
     PREREQ_PM        => {
         'Carp'          => 0,
         'XSLoader'      => 0,