summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorH.Merijn Brand <h.m.brand@xs4all.nl>2005-10-10 06:14:30 +0000
committerH.Merijn Brand <h.m.brand@xs4all.nl>2005-10-10 06:14:30 +0000
commitbee0003aabcb42f0f5d890de422d7ccdd7435de9 (patch)
tree75342a0784c56ab0ec22251d11dab39f7b4ec259 /ext
parentd967198d03d8a5da5031998230685b8e4fbd0285 (diff)
downloadperl-bee0003aabcb42f0f5d890de422d7ccdd7435de9.tar.gz
Compress::Zlib should not ask under Cygwin in CORE
p4raw-id: //depot/perl@25726
Diffstat (limited to 'ext')
-rwxr-xr-xext/Compress/Zlib/Makefile.PL4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/Compress/Zlib/Makefile.PL b/ext/Compress/Zlib/Makefile.PL
index aeb58e8c02..3c45fb03fa 100755
--- a/ext/Compress/Zlib/Makefile.PL
+++ b/ext/Compress/Zlib/Makefile.PL
@@ -28,8 +28,9 @@ my $GZIP_OS_CODE = -1 ;
#$WALL = ' -pedantic ' if $Config{'cc'} =~ /gcc/ ;
$WALL = ' -Wall ' if $Config{'cc'} =~ /gcc/ ;
+my $PERL_CORE = grep { $_ eq 'PERL_CORE=1' } @ARGV;
# don't ask if MM_USE_DEFAULT is set -- enables perl core building on cygwin
-if ($^O =~ /cygwin/i and not $ENV{PERL_MM_USE_DEFAULT})
+if ($^O =~ /cygwin/i and not ($ENV{PERL_MM_USE_DEFAULT} || $PERL_CORE))
{
print <<EOM ;
@@ -73,7 +74,6 @@ my @files = ('Zlib.pm', 't/ZlibTestUtils.pm',
glob("lib/File/*.pm"),
grep(!/\.bak$/, glob("examples/*"))) ;
-my $PERL_CORE = grep { $_ eq 'PERL_CORE=1' } @ARGV;
UpDowngrade(@files) unless $PERL_CORE;
WriteMakefile(