summaryrefslogtreecommitdiff
path: root/arch/darwin-arm/strip
blob: 5a348dd4b1add9698494f94e26dbaa35bb2fb701 (plain)
1
2
3
4
5
6
7
8
9
find "${PKG_DEST}" -type f \( -perm -0500 -o -name '*.dylib' \) -print0 | while read -r -d $'\0' bin; do
    case "$(file "${bin}")" in (\
        *': Mach-O fat file with '*([0-9])' architecture' |\
        *': Mach-O dynamically linked shared library acorn'\
    );; (*) continue;; esac
        #*': '?(setuid )?(setgid )'Mach-O executable acorn' |\

    "${PKG_TARG}-strip" -x -no_uuid "${bin}"
done