From 78ca93d237ec615f24ace1322513e1dee5a88d03 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 6 Nov 2009 09:57:34 +0000 Subject: abuild: use pax-utils's scanelf to find binaries to strip --- abuild.in | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'abuild.in') diff --git a/abuild.in b/abuild.in index 27e8ab6..e273533 100755 --- a/abuild.in +++ b/abuild.in @@ -834,16 +834,9 @@ stripbin() { options_has "!strip" && return 0 cd "${subpkgdir:-$pkgdir}" || return 1 msg "Stripping binaries" - find . -type f 2>/dev/null | while read bin; do - local opt= - case "$(file -biz "$bin")" in - */x-sharedlib*|*/x-archive*) - strip --strip-debug "$bin";; - */x-executable*) - strip "$bin";; - esac - done - return 0 + scanelf --recursive --nobanner --etype "ET_DYN,ET_EXEC" . \ + | sed -e 's:^ET_DYN ::' -e 's:^ET_EXEC ::' \ + | xargs -r strip } # simply list target apks -- cgit v1.2.3-70-g09d2