summaryrefslogtreecommitdiff
path: root/util/collect2
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-04-14 23:22:48 +0000
committerJay Freeman <saurik@saurik.com>2008-04-14 23:22:48 +0000
commit7817782b2837cf98f7566e13f80b9c071ff20139 (patch)
tree452a5677d990e0d9dc9c36ac08bd4204e447afc2 /util/collect2
parente615a71056dfae4f19dfef86331eb030494b79b7 (diff)
Fixed some dependencies, removed mDNS fix for 2.0, and factored for multi-arch support.
git-svn-id: http://svn.telesphoreo.org/trunk@218 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'util/collect2')
-rwxr-xr-xutil/collect210
1 files changed, 8 insertions, 2 deletions
diff --git a/util/collect2 b/util/collect2
index 30cacb773..864805335 100755
--- a/util/collect2
+++ b/util/collect2
@@ -37,10 +37,16 @@ if [[ "${darwin+@}" ]]; then
flags[${#flags[@]}]=-no_uuid
if [[ "${PKG_PATH+@}" ]]; then
- flags=("${flags[@]}"$(echo "${PKG_PATH}:" | while read -r -d ':' path; do
+ flags=("${flags[@]}"$({
+ echo "${PKG_PATH}" | tr ':' $'\n'
+
+ for DEP_NAME in libgcc sqlite3; do
+ echo "$(PKG_DEST_ "${DEP_NAME}")"
+ done
+ } | while read -r path; do
find "${path}" -name '*.dylib' -print0 | while read -r -d $'\0' dylib_file; do
dylib_name=${dylib_file#${path}}
- echo " -dylib_file ${dylib_name}:${dylib_file}"
+ echo -n " -dylib_file ${dylib_name}:${dylib_file}"
done
done))
fi