From: Vincent Pit Date: Sat, 2 May 2009 15:05:35 +0000 (+0200) Subject: Disable thread safety for 5.8.x on Windows X-Git-Tag: v0.07~6 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FLexical-Types.git;a=commitdiff_plain;h=24fbef15223a85e9894ce6038127853a637b26e7 Disable thread safety for 5.8.x on Windows --- diff --git a/Makefile.PL b/Makefile.PL index d2f4477..3e89d72 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, '-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,