diff options
author | Jay Freeman <saurik@saurik.com> | 2009-08-09 08:31:06 +0000 |
---|---|---|
committer | Jay Freeman <saurik@saurik.com> | 2009-08-09 08:31:06 +0000 |
commit | e09f6113af289b687f1e7b1aff99c5e816bb46dc (patch) | |
tree | 3e4d7ff648c3572284399ebcda87956d066332d8 /arch/iphoneos-arm/strip | |
parent | 67e08998fd3ba45d710a424e040f5b52df3c00ff (diff) |
Upgrading architecture definitions.
git-svn-id: http://svn.telesphoreo.org/trunk@650 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'arch/iphoneos-arm/strip')
-rw-r--r-- | arch/iphoneos-arm/strip | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/arch/iphoneos-arm/strip b/arch/iphoneos-arm/strip index c3949ae3c..0c0fad136 100644 --- a/arch/iphoneos-arm/strip +++ b/arch/iphoneos-arm/strip @@ -1,12 +1,16 @@ -find "${PKG_DEST}" -type f \( -perm -0500 -o -name '*.dylib' \) -print0 | while read -r -d $'\0' bin; do +find "${PKG_DEST}" -type f \( -perm -0100 -o -name '*.dylib' -o -name '*.so' \) -print0 | while read -r -d $'\0' bin; do case "$(file "${bin}")" in (\ *': Mach-O fat file with '*([0-9])' architecture' |\ *': '?(setuid )?(setgid )'Mach-O executable acorn' |\ - *': Mach-O dynamically linked shared library acorn'\ + *': Mach-O dynamically linked shared library acorn' |\ + *': Mach-O bundle acorn'\ );; (*) continue;; esac if arm-apple-darwin9-otool -hv "${bin}" | grep DYLIB_STUB &>/dev/null; then continue; fi - CODESIGN_ALLOCATE=$(which arm-apple-darwin9-codesign_allocate) \ - "${PKG_BASE}/util/ldid" -S "${bin}" + if grep $'\xfa\xde\x0c\x01' "${bin}" &>/dev/null; then + continue; fi + + "${PKG_BASE}/util/ldid" -S "${bin}" + #"${PKG_BASE}/arch/iphoneos-arm/entitlement.xml" "${bin}" done |