summaryrefslogtreecommitdiff
path: root/util/collect2
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-07-23 01:47:18 +0000
committerJay Freeman <saurik@saurik.com>2008-07-23 01:47:18 +0000
commit65512e67f20607810bfc8e2aa72adf770d720b58 (patch)
tree5390bf25077f370f646e05704db951d4f712d019 /util/collect2
parent4f14d1d836ed5b69e85f77a49f8dd624793a4c2a (diff)
Worked around an issue in some package that uses the collection backend to link something that isn't a .o.
git-svn-id: http://svn.telesphoreo.org/trunk@381 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'util/collect2')
-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