From 65512e67f20607810bfc8e2aa72adf770d720b58 Mon Sep 17 00:00:00 2001 From: Jay Freeman Date: Wed, 23 Jul 2008 01:47:18 +0000 Subject: 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 --- util/collect2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3