summaryrefslogtreecommitdiff
path: root/arch/darwin-arm/strip
blob: cc7b2ef852a78fcd8ed2f4a10b2d63fe0ae0c6bb (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 (\
        *': 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