diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-11-06 09:57:34 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-11-06 09:57:34 +0000 |
commit | 78ca93d237ec615f24ace1322513e1dee5a88d03 (patch) | |
tree | ce57079de0e53bbeeb8dc0deb505c14085eea941 | |
parent | 9999ee02b5618eff33b842764c6d01e9a3229b75 (diff) | |
download | abuild-78ca93d237ec615f24ace1322513e1dee5a88d03.tar.gz abuild-78ca93d237ec615f24ace1322513e1dee5a88d03.tar.bz2 abuild-78ca93d237ec615f24ace1322513e1dee5a88d03.tar.xz abuild-78ca93d237ec615f24ace1322513e1dee5a88d03.zip |
abuild: use pax-utils's scanelf to find binaries to strip
-rwxr-xr-x | abuild.in | 13 |
1 files changed, 3 insertions, 10 deletions
@@ -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 |