From: Nicholas Clark Date: Fri, 30 Jan 2009 22:52:50 +0000 (+0000) Subject: Eliminate $makeargs by prepending its contents to $passthru. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9822e6e0ce235da7838e955762323f2bb3477e07;p=p5sagit%2Fp5-mst-13.2.git Eliminate $makeargs by prepending its contents to $passthru. --- diff --git a/make_ext.pl b/make_ext.pl index ce63523..d0c6328 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 $?;