summaryrefslogtreecommitdiff
path: root/util
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
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')
-rwxr-xr-xutil/catdir.sh2
-rwxr-xr-xutil/collect210
-rwxr-xr-xutil/configure.sh2
3 files changed, 11 insertions, 3 deletions
diff --git a/util/catdir.sh b/util/catdir.sh
index b23b94125..19dfd2461 100755
--- a/util/catdir.sh
+++ b/util/catdir.sh
@@ -1,3 +1,5 @@
#!/bin/bash
+cd "$1"
+shift
find -H "$@" -type l -printf '%p -> %l\n' -o -printf '%p (%U/%G/%#m)\n' | sort
find -H "$@" -type f -print0 | sort -z | xargs -0 cat
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
diff --git a/util/configure.sh b/util/configure.sh
index 162ea207c..396c6f59b 100755
--- a/util/configure.sh
+++ b/util/configure.sh
@@ -7,4 +7,4 @@ if [[ -z $PKG_CONF ]]; then
PKG_CONF=./configure
fi
-PKG_ROOT=/home/saurik/iphone/sysroot PKG_CONFIG="$(realpath ../../../util/pkg-config.sh) --define-variable=prefix=/home/saurik/iphone/sysroot/usr" PKG_CONFIG_PATH=/home/saurik/iphone/sysroot/usr/lib/pkgconfig $PKG_CONF --prefix=/usr --host=arm-apple-darwin8 --enable-static=no --enable-shared=yes "$@"
+PKG_ROOT=/home/saurik/iphone/sysroot PKG_CONFIG="$(realpath ../../../util/pkg-config.sh) --define-variable=prefix=/home/saurik/iphone/sysroot/usr" PKG_CONFIG_PATH=/home/saurik/iphone/sysroot/usr/lib/pkgconfig $PKG_CONF --prefix=/usr --host=arm-apple-darwin9 --enable-static=no --enable-shared=yes "$@"