From 08a62c342c03a8f96795c5e1509533551803427c Mon Sep 17 00:00:00 2001 From: Jay Freeman Date: Sat, 14 Jun 2008 20:57:52 +0000 Subject: Factored strip out of build, added support for compiling the new codehashing routines, and deactivated -g globally. git-svn-id: http://svn.telesphoreo.org/trunk@312 514c082c-b64e-11dc-b46d-3d985efe055d --- arch/darwin-arm/strip | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 arch/darwin-arm/strip (limited to 'arch/darwin-arm') 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 -- cgit v1.2.3