summaryrefslogtreecommitdiff
path: root/arch/darwin-arm/strip
diff options
context:
space:
mode:
Diffstat (limited to 'arch/darwin-arm/strip')
-rw-r--r--arch/darwin-arm/strip9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/darwin-arm/strip b/arch/darwin-arm/strip
new file mode 100644
index 000000000..cc7b2ef85
--- /dev/null
+++ b/arch/darwin-arm/strip
@@ -0,0 +1,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