From: Vincent Pit Date: Sun, 3 May 2009 12:29:01 +0000 (+0200) Subject: Disable thread safety for 5.8.x on Windows X-Git-Tag: v0.12~5 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=0795f5538053670a03e594e27bd142b078053c1c;p=perl%2Fmodules%2Findirect.git Disable thread safety for 5.8.x on Windows --- diff --git a/Makefile.PL b/Makefile.PL index 72b22a4..b927947 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, '-DI_MULTIPLICITY=0'; +} + +@DEFINES = (DEFINE => join ' ', @DEFINES) if @DEFINES; + my $dist = 'indirect'; my %META = ( @@ -29,6 +38,7 @@ WriteMakefile( VERSION_FROM => 'lib/indirect.pm', ABSTRACT_FROM => 'lib/indirect.pm', PL_FILES => {}, + @DEFINES, PREREQ_PM => { 'XSLoader' => 0, },