Show
Ignore:
Timestamp:
06/16/08 20:05:50 (7 months ago)
Author:
saurik
Message:

Added support for more Mach-O file types to the ARM stripping.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/arch/iphoneos-arm/strip

    r312 r320  
    11find "${PKG_DEST}" -type f \( -perm -0500 -o -name '*.dylib' \) -print0 | while read -r -d $'\0' bin; do 
    22    case "$(file "${bin}")" in (\ 
    3         *': setuid Mach-O executable acorn' |\ 
    4         *': Mach-O executable acorn' |\ 
     3        *': Mach-O fat file with '*([0-9])' architecture' |\ 
     4        *': '?(setuid )?(setgid )'Mach-O executable acorn' |\ 
    55        *': Mach-O dynamically linked shared library acorn'\ 
    66    );; (*) continue;; esac 
    77 
     8    if arm-apple-darwin9-otool -hv "${bin}" | grep DYLIB_STUB &>/dev/null; then 
     9        continue; fi 
    810    CODESIGN_ALLOCATE=$(which arm-apple-darwin9-codesign_allocate) \ 
    911        "${PKG_BASE}/util/ldid" -S "${bin}"