pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/tools mk/tools: Create a strip-dbg tool.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/39c25482182e
branches:  trunk
changeset: 325222:39c25482182e
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Mon Nov 12 13:36:50 2018 +0000

description:
mk/tools: Create a strip-dbg tool.

On platform where strip supports -g it is used, otherwise this is a no-op.

diffstat:

 mk/tools/strip.mk |  17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r f4c1f4f3bc72 -r 39c25482182e mk/tools/strip.mk
--- a/mk/tools/strip.mk Mon Nov 12 13:34:39 2018 +0000
+++ b/mk/tools/strip.mk Mon Nov 12 13:36:50 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: strip.mk,v 1.5 2018/08/22 20:48:37 maya Exp $
+# $NetBSD: strip.mk,v 1.6 2018/11/12 13:36:50 jperkin Exp $
 #
 # Copyright (c) 2005 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -39,7 +39,20 @@
 TOOLS_PATH.strip=      ${TOOLS_PLATFORM.strip}
 .endif
 
-# Make ${STRIP} call "strip" through the PATH, which should find the one
+#
+# Create a special strip-dbg tool for stripping just debug information,
+# used by the install-strip-debug target.  Currently requires GNU strip.
+#
+.if !defined(TOOLS_PLATFORM.gstrip)
+TOOLS_NOOP+=           strip-dbg
+.else
+TOOLS_CREATE+=         strip-dbg
+TOOLS_PATH.strip-dbg=  ${TOOLS_PLATFORM.gstrip}
+TOOLS_ARGS.strip-dbg=  -g
+.endif
+
+# Make ${STRIP} and ${STRIP_DBG} call through the PATH so they find the ones
 # under ${TOOLS_DIR}.
 #
 STRIP?=                strip
+STRIP_DBG?=    strip-dbg



Home | Main Index | Thread Index | Old Index