summaryrefslogtreecommitdiff
path: root/make_ext.pl
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-01-30 22:52:50 +0000
committerNicholas Clark <nick@ccl4.org>2009-01-30 22:52:50 +0000
commit9822e6e0ce235da7838e955762323f2bb3477e07 (patch)
tree637e066173877602017dc8a7a43df46291a99b5f /make_ext.pl
parentb8d39eba9160d9d827fe1bd336e755657f56fc04 (diff)
downloadperl-9822e6e0ce235da7838e955762323f2bb3477e07.tar.gz
Eliminate $makeargs by prepending its contents to $passthru.
Diffstat (limited to 'make_ext.pl')
-rw-r--r--make_ext.pl14
1 files changed, 4 insertions, 10 deletions
diff --git a/make_ext.pl b/make_ext.pl
index ce63523dce..d0c6328b77 100644
--- a/make_ext.pl
+++ b/make_ext.pl
@@ -97,7 +97,6 @@ $mname =~ s!/!::!g;
my $depth = $pname;
$depth =~ s![^/]+!..!g;
my $makefile = "Makefile";
-my $makeargs = '';
my $makeopts = '';
if (not -d "ext/$pname") {
@@ -119,19 +118,18 @@ chdir("ext/$pname");
# 'dynamic', 'static', and 'static_pic' (the last one respects
# CCCDLFLAGS such as -fPIC -- see static_target in the main Makefile.SH)
if ($target eq 'dynamic') {
- $makeargs = "LINKTYPE=dynamic";
+ $passthru = "LINKTYPE=dynamic $passthru";
$target = 'all';
}
elsif ($target eq 'static') {
- $makeargs = "LINKTYPE=static CCCDLFLAGS=";
+ $passthru = "LINKTYPE=static CCCDLFLAGS= $passthru";
$target = 'all';
}
elsif ($target eq 'static_pic') {
- $makeargs = "LINKTYPE=static";
+ $passthru = "LINKTYPE=static $passthru";
$target = 'all';
}
elsif ($target eq 'nonxs') {
- $makeargs = "";
$target = 'all';
}
elsif ($target =~ /clean$/) {
@@ -215,8 +213,4 @@ else {
and print "$make config failed, continuing anyway...\n";
}
-system(
- "$run$make $target MAKE=$make $makeargs $passthru"
-) or exit();
-
-exit($?);
+system "$run$make $target MAKE=$make $passthru" and exit $?;