aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2022-11-14 20:14:28 +0000
committermerakor <cem@ckyln.com>2022-11-14 20:14:28 +0000
commite013226fb50f62eaf4d43eb01f8b007a78fa6a24 (patch)
tree2593f63d0ac0f7266f7fc229be72bbd57a3af500
parente441e79e287a538988c14b534baac4cca3ce7599 (diff)
downloadcpt-e013226fb50f62eaf4d43eb01f8b007a78fa6a24.tar.gz
pkg_strip: add $CPT_NOSTRIP environment variable
FossilOrigin-Name: 07ce90d1cd5e13f5773d8a035266c2e34e3e85233bb1f5b4027427e885b37111
-rw-r--r--src/cpt-lib.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpt-lib.in b/src/cpt-lib.in
index 37c0860..0616622 100644
--- a/src/cpt-lib.in
+++ b/src/cpt-lib.in
@@ -974,7 +974,7 @@ pkg_strip() {
# system as well as on the tarballs we ship for installation.
# Package has stripping disabled, stop here.
- [ -f "$mak_dir/$pkg/nostrip" ] && return
+ [ "$CPT_NOSTRIP" ] || [ -f "$mak_dir/$pkg/nostrip" ] && return
log "$1" "Stripping binaries and libraries"