summaryrefslogtreecommitdiff
path: root/make_ext.pl
diff options
context:
space:
mode:
authorJess Robinson <castaway@desert-island.me.uk>2012-12-29 21:29:50 +0000
committerBrian Fraser <fraserbn@gmail.com>2014-01-22 13:08:19 -0300
commitd708ee4b2cf817d9803f6f18f87d6ce91ca74ff4 (patch)
treea3cf4079273544ab17eca72786623bad7fcce7ab /make_ext.pl
parentb3f5e06d5ac6935e10a18f3dcb6e437fb2861500 (diff)
downloadperl-d708ee4b2cf817d9803f6f18f87d6ce91ca74ff4.tar.gz
Stop using $run for anything other than testing compiled tests in Configure.
When cross-compiling we want to run miniperl etc on the compile host, not the test target
Diffstat (limited to 'make_ext.pl')
-rw-r--r--make_ext.pl13
1 files changed, 5 insertions, 8 deletions
diff --git a/make_ext.pl b/make_ext.pl
index 885322f442..c857130a15 100644
--- a/make_ext.pl
+++ b/make_ext.pl
@@ -120,9 +120,6 @@ unless(defined $makecmd and $makecmd =~ /^MAKE=(.*)$/) {
# names, but neither did what it replaced. Once there is a use case that needs
# it, please supply patches. Until then, I'm sticking to KISS
my @make = split ' ', $1 || $Config{make} || $ENV{MAKE};
-# Using an array of 0 or 1 elements makes the subsequent code simpler.
-my @run = $Config{run};
-@run = () if not defined $run[0] or $run[0] eq '';
if ($target eq '') {
@@ -464,8 +461,8 @@ EOM
}
push @args, @$pass_through;
_quote_args(\@args) if $is_VMS;
- print join(' ', @run, $perl, @args), "\n";
- my $code = system @run, $perl, @args;
+ print join(' ', $perl, @args), "\n";
+ my $code = 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
@@ -521,11 +518,11 @@ EOS
# Give makefile an opportunity to rewrite itself.
# reassure users that life goes on...
my @args = ('config', @$pass_through);
- system(@run, @make, @args) and print "@run @make @args failed, continuing anyway...\n";
+ system(@make, @args) and print "@make @args failed, continuing anyway...\n";
}
my @targ = ($target, @$pass_through);
- print "Making $target in $ext_dir\n@run @make @targ\n";
- my $code = system(@run, @make, @targ);
+ print "Making $target in $ext_dir\n@make @targ\n";
+ my $code = system(@make, @targ);
die "Unsuccessful make($ext_dir): code=$code" if $code != 0;
chdir $return_dir || die "Cannot cd to $return_dir: $!";