diff --git a/abuild.in b/abuild.in index dae99b3..ef80891 100644 --- a/abuild.in +++ b/abuild.in @@ -2142,9 +2142,9 @@ stripbin() { esac msg "Stripping binaries" - scanelf --recursive --nobanner --etype "ET_DYN,ET_EXEC" . \ - | sed -e 's:^ET_DYN ::' -e 's:^ET_EXEC ::' \ - | while read filename; do + scanelf --recursive --nobanner --osabi --etype "ET_DYN,ET_EXEC" . \ + | while read type osabi filename; do + [ "$osabi" != "STANDALONE" ] || continue local XATTR=$(getfattr --match="" --dump "${filename}") "${stripcmd}" "${filename}" if [ -n "$XATTR" ]; then