From 863f79ca385f0b6c52cab78983390360db5ed622 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 24 Jul 2020 01:42:04 +0300 Subject: [PATCH] kiss: Add environment variable to toggle stripping. This commit adds KISS_STRIP to allow stripping to be controlled at runtime for all staged packages. This is also handy when temporarily needing debugging symbols for a given piece of software. Defaults to '1', set to '0' to disable stripping. Example: KISS_STRIP=0 kiss b zlib --- kiss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kiss b/kiss index f1be697..47e7ded 100755 --- a/kiss +++ b/kiss @@ -376,7 +376,7 @@ pkg_order() { pkg_strip() { # Strip package binaries and libraries. This saves space on the system as # well as on the tarballs we ship for installation. - [ -f "$mak_dir/$pkg/nostrip" ] && return + [ -f "$mak_dir/$pkg/nostrip" ] || [ "$KISS_STRIP" = 0 ] && return log "$1" "Stripping binaries and libraries"