diff options
Diffstat (limited to 'ext/Compress')
-rwxr-xr-x | ext/Compress/Zlib/Makefile.PL | 4 |
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( |