]> git.vpit.fr Git - perl/modules/Lexical-Types.git/blobdiff - Makefile.PL
This is 0.07
[perl/modules/Lexical-Types.git] / Makefile.PL
index 288e8e2c72bb3fe03e6b050f137c71ebb7ed498d..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 = (
@@ -19,7 +28,7 @@ my %META = (
   bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist",
   homepage   => "http://search.cpan.org/dist/$dist/",
   license    => 'http://dev.perl.org/licenses/',
-  repository => "http://git.profvince.com/?p=perl/modules/$dist.git",
+  repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git",
  },
 );
 
@@ -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,