summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xext/Compress/Zlib/Makefile.PL6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/Compress/Zlib/Makefile.PL b/ext/Compress/Zlib/Makefile.PL
index 2ffe575ddb..b8c2240160 100755
--- a/ext/Compress/Zlib/Makefile.PL
+++ b/ext/Compress/Zlib/Makefile.PL
@@ -25,8 +25,12 @@ my $OLD_ZLIB = '' ;
my $WALL = '';
#$WALL = ' -Wall ';
+unless($ENV{PERL_CORE}) {
+ $ENV{PERL_CORE} = 1 if 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} and not $ENV{PERL_CORE})
{
print <<EOM ;