pkgmk: Actually strip executables and objects. Patch by Roman Oreshnikov

FS#1378
This commit is contained in:
Fredrik Rinnestam 2017-02-18 18:04:41 +01:00
parent 8ecaa590f0
commit 8a13560ef8

View File

@ -426,10 +426,10 @@ strip_files() {
find . -type f -printf "%P\n" | $FILTER | while read FILE; do
case $(file -b "$FILE") in
*ELF*executable*not\ stripped)
*ELF*executable*not\ stripped,*)
strip --strip-all "$FILE"
;;
*ELF*shared\ object*not\ stripped)
*ELF*shared\ object*not\ stripped,*)
strip --strip-unneeded "$FILE"
;;
current\ ar\ archive)