From: Michael G. Schwern <schwern@pobox.com>
Date: Fri, 29 Mar 2002 17:48:22 +0000 (-0500)
Subject: Re: compile tweak for Win32
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e7d8b26b5831ffd4d8deae9b5ea0e13886d94df2;p=p5sagit%2Fp5-mst-13.2.git

Re: compile tweak for Win32
Message-ID: <20020329224822.GG16816@blackrider>

p4raw-id: //depot/perl@15631
---

diff --git a/win32/buildext.pl b/win32/buildext.pl
index ab4345c..b5fd4d4 100644
--- a/win32/buildext.pl
+++ b/win32/buildext.pl
@@ -48,8 +48,10 @@ foreach my $dir (sort @ext)
     if (!(-f 'Makefile') || $mmod > $dmod)
      {
       print "\nRunning Makefile.PL in $dir\n";
-      print "$perl \"-I$here\\..\\lib\" Makefile.PL INSTALLDIRS=perl\n";
-      my $code = system($perl,"-I$here\\..\\lib",'Makefile.PL','INSTALLDIRS=perl');
+      my @perl = ($perl, "-I$here\\..\\lib", 'Makefile.PL',
+                  'INSTALLDIRS=perl', 'PERL_CORE=1');
+      print join(' ', @perl), "\n";
+      my $code = system(@perl);
       warn "$code from $dir's Makefile.PL" if $code;
       $mmod = -M 'Makefile';
       if ($mmod > $dmod)