From 3573536695656f8be084deec45951a919a820b48 Mon Sep 17 00:00:00 2001 From: David Dick Date: Mon, 30 Dec 2024 10:44:57 +1100 Subject: [PATCH] Do not compile on Win32 (no need) --- Makefile.PL | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile.PL b/Makefile.PL index 87b9135..3e1b218 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -4,7 +4,11 @@ use ExtUtils::MakeMaker; my %optional; -if ($^O ne 'MSWin32') { +if ($^O eq 'MSWin32') { + $optional{OBJECT} = q[]; + $optional{C} = []; + $optional{MYEXTLIB} = q[]; +} else { eval `cat ./check_random.pl`; if (($optional{DEFINE}) && ($optional{DEFINE} eq '-DNO_COMPILER_FOUND')) { # figured this out from ExtUtils/MM_Unix.pm in has_link_code