aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-05-29 17:36:32 +0000
committermerakor <cem@ckyln.com>2020-05-29 17:36:32 +0000
commitf2a9c537710dac419ff7716a69aa36ef0b9ec9a7 (patch)
tree1171bb82b0e1ab6f92ae651b6a81f6e61686aadf
parente1382bbd8d07304021b20f91f2c8119c1b0bff20 (diff)
downloadcpt-f2a9c537710dac419ff7716a69aa36ef0b9ec9a7.tar.gz
kiss: silent stripping
FossilOrigin-Name: 758ad121f59700fc55e5fc6d2702104bbf7e8a7a8f0664929e5d6ad4b33068e9
-rwxr-xr-xkiss10
1 files changed, 1 insertions, 9 deletions
diff --git a/kiss b/kiss
index cd26410..d2adfe4 100755
--- a/kiss
+++ b/kiss
@@ -461,25 +461,17 @@ pkg_strip() {
# REL (object files (.o), static libraries (.a)).
*177*E*L*F*0000020\ 001\ *|*\!*\<*a*r*c*h*\>*)
strip -g -R .comment -R .note "$file"
- strip_opt=DEBUG
;;
# EXEC (static binaries).
- *177*E*L*F*0000020\ 002\ *)
- strip -s -R .comment -R .note "$file"
- strip_opt=ALL
- ;;
-
# DYN (shared libraries, dynamic binaries).
# Shared libraries keep global symbols in a separate ELF section
# called '.dynsym'. '--strip-all/-s' does not touch the dynamic
# symbol entries which makes this safe to do.
- *177*E*L*F*0000020\ 003\ *)
+ *177*E*L*F*0000020\ 00[23]\ *)
strip -s -R .comment -R .note "$file"
- strip_opt=UNNEEDED
;;
esac
- [ "$strip_opt" ] && printf 'Stripped %10s %s\n' "($strip_opt)" "${file##$pkg_dir/$1}"
done 2>/dev/null ||:
}