diff options
Diffstat (limited to 'arch/iphoneos-arm/strip')
-rw-r--r-- | arch/iphoneos-arm/strip | 10 |
1 files changed, 10 insertions, 0 deletions
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 |