summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
Diffstat (limited to 'make')
-rwxr-xr-xmake/run-cc.pl7
1 files changed, 6 insertions, 1 deletions
diff --git a/make/run-cc.pl b/make/run-cc.pl
index 4c07632f3..71a921c61 100755
--- a/make/run-cc.pl
+++ b/make/run-cc.pl
@@ -86,8 +86,13 @@ foreach my $n (@ARGV)
{
$action = "BUILD";
$name = $n;
+ last;
}
- elsif ($n !~ /\.^-c/)
+ elsif ($n eq "-o")
+ {
+ $action = $name = $n;
+ }
+ elsif ($name eq "-o")
{
$action = "LINK";
$name = $n;