pkgsrc-Changes archive

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

CVS commit: pkgsrc/mk/tools



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Mon Nov 12 13:36:50 UTC 2018

Modified Files:
        pkgsrc/mk/tools: strip.mk

Log Message:
mk/tools: Create a strip-dbg tool.

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


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/mk/tools/strip.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/mk/tools/strip.mk
diff -u pkgsrc/mk/tools/strip.mk:1.5 pkgsrc/mk/tools/strip.mk:1.6
--- pkgsrc/mk/tools/strip.mk:1.5        Wed Aug 22 20:48:37 2018
+++ pkgsrc/mk/tools/strip.mk    Mon Nov 12 13:36:50 2018
@@ -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_CREATE+=               strip
 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