From 7dc612c62699079f7a292ae3ac7fafaf83cc6b0b Mon Sep 17 00:00:00 2001 From: jperkin Date: Mon, 12 Nov 2018 13:47:32 +0000 Subject: 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. --- mk/install/install.mk | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'mk/install') 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 -- cgit v1.2.3