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/0b0d4e1a37a0
branches: trunk
changeset: 314950:0b0d4e1a37a0
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 5220201dd9cd -r 0b0d4e1a37a0 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