summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xutil/collect24
1 files changed, 3 insertions, 1 deletions
diff --git a/util/collect2 b/util/collect2
index e5226ac71..741c293dd 100755
--- a/util/collect2
+++ b/util/collect2
@@ -16,7 +16,9 @@ function parse() {
elif [[ $1 = -mmacosx-version-min=* ]]; then
mmacosx_version_min=${1#-mmacosx-version-min=}
elif [[ $1 == -o ]]; then
- o=$2
+ if [[ $2 != *.o ]]; then
+ o=$2
+ fi
shift
fi; shift
done