summaryrefslogtreecommitdiff
path: root/make_ext.pl
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2014-10-10 14:51:45 -0700
committerFather Chrysostomos <sprout@cpan.org>2014-10-10 14:51:45 -0700
commitcbf3d0f6a515715bb20f6172aaf6b6d77202a1f3 (patch)
tree0ba8248ce5895e89ab7e6abdb40c43b364c9e433 /make_ext.pl
parenta953aca586d48d6f0b2c4db3572de328ed6d85e8 (diff)
downloadperl-cbf3d0f6a515715bb20f6172aaf6b6d77202a1f3.tar.gz
Set PERL_MM_USE_DEFAULT in make_ext.pl
In the perl core, we shouldn’t be getting messages like this when trying to build perl: Should I do external tests? These tests will fail if there is no internet connection or if a firewall blocks or modifies some traffic. [y/N] [n] libnet’s Makefile.PL now does that. To make it easier to maintain such Makefiles.PL to work both on CPAN and in the core, set PERL_MM_USE_DEFAULT temporarily in make_ext.pl when running the Makefile.PL.
Diffstat (limited to 'make_ext.pl')
-rw-r--r--make_ext.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/make_ext.pl b/make_ext.pl
index b855c6326a..6e7955d29f 100644
--- a/make_ext.pl
+++ b/make_ext.pl
@@ -506,7 +506,10 @@ EOM
push @args, @$pass_through;
_quote_args(\@args) if $is_VMS;
print join(' ', $perl, @args), "\n" if $verbose;
- my $code = system $perl, @args;
+ my $code = do {
+ local $ENV{PERL_MM_USE_DEFAULT} = 1;
+ system $perl, @args;
+ };
warn "$code from $ext_dir\'s Makefile.PL" if $code;
# Right. The reason for this little hack is that we're sitting inside