mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-12-25 00:20:05 -07:00
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
This commit is contained in:
parent
8848d3f1d3
commit
863f79ca38
2
kiss
2
kiss
@ -376,7 +376,7 @@ pkg_order() {
|
|||||||
pkg_strip() {
|
pkg_strip() {
|
||||||
# Strip package binaries and libraries. This saves space on the system as
|
# Strip package binaries and libraries. This saves space on the system as
|
||||||
# well as on the tarballs we ship for installation.
|
# 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"
|
log "$1" "Stripping binaries and libraries"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user