Commit 78ca93d2 authored by Natanael Copa's avatar Natanael Copa
Browse files

abuild: use pax-utils's scanelf to find binaries to strip

parent 9999ee02
......@@ -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
strip --strip-debug "$bin";;
strip "$bin";;
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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment