1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-25 08:30:05 -07:00

kiss: Revert strip change.

This commit is contained in:
Dylan Araps 2020-05-21 18:06:32 +03:00
parent 7ec23086af
commit a02ad08ba0
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

12
kiss
View File

@ -429,7 +429,17 @@ pkg_strip() {
log "$1" "Stripping binaries and libraries"
find "$pkg_dir/$1" -type f -exec strip {} \; 2>/dev/null ||:
# Strip only files matching the below ELF types.
find "$pkg_dir/$1" -type f | while read -r file; do
case $(readelf -h "$file" 2>/dev/null) in
*" DYN "*) strip_opt=unneeded ;;
*" EXEC "*) strip_opt=all ;;
*" REL "*) strip_opt=debug ;;
*) continue
esac
strip "--strip-$strip_opt" "$file" 2>/dev/null
done 2>/dev/null ||:
}
pkg_fixdeps() {