summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2018-11-12 13:47:32 +0000
committerjperkin <jperkin@pkgsrc.org>2018-11-12 13:47:32 +0000
commit7dc612c62699079f7a292ae3ac7fafaf83cc6b0b (patch)
tree4c283f8e68f8192e10d63eb6c6c40b11ebd849e2 /mk
parent6b7555c7c008a3a887420775e8559f315d866bbd (diff)
downloadpkgsrc-7dc612c62699079f7a292ae3ac7fafaf83cc6b0b.tar.gz
mk/install: Add support for STRIP_DEBUG_SUPPORTED.
This is a package-settable variable that will disable stripping binaries if set to anything other than "yes" (the default). This helps packages such as anything built using golang where stripping binaries is harmful to them. Document this and the recently introduced STRIP_FILES_SKIP.
Diffstat (limited to 'mk')
-rw-r--r--mk/install/install.mk11
1 files changed, 9 insertions, 2 deletions
diff --git a/mk/install/install.mk b/mk/install/install.mk
index c1dadd011d4..dc5e710729a 100644
--- a/mk/install/install.mk
+++ b/mk/install/install.mk
@@ -1,4 +1,4 @@
-# $NetBSD: install.mk,v 1.73 2018/11/12 13:42:16 jperkin Exp $
+# $NetBSD: install.mk,v 1.74 2018/11/12 13:47:32 jperkin Exp $
#
# This file provides the code for the "install" phase.
#
@@ -55,6 +55,13 @@
# A variable name that should be set as staged installation location
# presented as ${DESTDIR} at install phase.
# "DESTDIR" is set by default.
+#
+# STRIP_DEBUG_SUPPORTED
+# If set to anything other than "yes" (the default), stripping will
+# be disabled for the package.
+#
+# STRIP_FILES_SKIP
+# A list of files relative to ${PREFIX} that will not be stripped.
######################################################################
### install (PUBLIC)
@@ -176,7 +183,7 @@ _INSTALL_ALL_TARGETS+= pre-install
_INSTALL_ALL_TARGETS+= do-install
_INSTALL_ALL_TARGETS+= post-install
_INSTALL_ALL_TARGETS+= plist
-.if !empty(STRIP_DEBUG:M[Yy][Ee][Ss])
+.if ${STRIP_DEBUG:Uno:tl} == "yes" && ${STRIP_DEBUG_SUPPORTED:Uyes:tl} == "yes"
_INSTALL_ALL_TARGETS+= install-strip-debug
.endif
_INSTALL_ALL_TARGETS+= install-doc-handling