summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-06-14 20:57:52 +0000
committerJay Freeman <saurik@saurik.com>2008-06-14 20:57:52 +0000
commit08a62c342c03a8f96795c5e1509533551803427c (patch)
treea6a27c52d591c46bc016878761241359602de197 /arch
parent1a1133063a270bce9f40b9e712ee1fa9a6d4d75c (diff)
Factored strip out of build, added support for compiling the new codehashing routines, and deactivated -g globally.
git-svn-id: http://svn.telesphoreo.org/trunk@312 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'arch')
-rw-r--r--arch/darwin-arm/strip9
-rw-r--r--arch/iphoneos-arm/strip10
2 files changed, 19 insertions, 0 deletions
diff --git a/arch/darwin-arm/strip b/arch/darwin-arm/strip
new file mode 100644
index 000000000..cc7b2ef85
--- /dev/null
+++ b/arch/darwin-arm/strip
@@ -0,0 +1,9 @@
+find "${PKG_DEST}" -type f \( -perm -0500 -o -name '*.dylib' \) -print0 | while read -r -d $'\0' bin; do
+ case "$(file "${bin}")" in (\
+ *': setuid Mach-O executable acorn' |\
+ *': Mach-O executable acorn' |\
+ *': Mach-O dynamically linked shared library acorn'\
+ );; (*) continue;; esac
+
+ "${PKG_TARG}-strip" -x -no_uuid "${bin}"
+done
diff --git a/arch/iphoneos-arm/strip b/arch/iphoneos-arm/strip
new file mode 100644
index 000000000..79482a7d9
--- /dev/null
+++ b/arch/iphoneos-arm/strip
@@ -0,0 +1,10 @@
+find "${PKG_DEST}" -type f \( -perm -0500 -o -name '*.dylib' \) -print0 | while read -r -d $'\0' bin; do
+ case "$(file "${bin}")" in (\
+ *': setuid Mach-O executable acorn' |\
+ *': Mach-O executable acorn' |\
+ *': Mach-O dynamically linked shared library acorn'\
+ );; (*) continue;; esac
+
+ CODESIGN_ALLOCATE=$(which arm-apple-darwin9-codesign_allocate) \
+ "${PKG_BASE}/util/ldid" -S "${bin}"
+done