pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/install mk/install: Add support for STRIP_DEBUG_SUP...
details: https://anonhg.NetBSD.org/pkgsrc/rev/306813279581
branches: trunk
changeset: 387224:306813279581
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Mon Nov 12 13:47:32 2018 +0000
description:
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:
mk/install/install.mk | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diffs (32 lines):
diff -r 010128cae0b5 -r 306813279581 mk/install/install.mk
--- a/mk/install/install.mk Mon Nov 12 13:42:16 2018 +0000
+++ b/mk/install/install.mk Mon Nov 12 13:47:32 2018 +0000
@@ -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+= 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
Home |
Main Index |
Thread Index |
Old Index