Received: by mail.netbsd.org (Postfix, from userid 605) id E3CD784E02; Mon, 12 Nov 2018 13:36:52 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id CA2FF84DF4 for ; Mon, 12 Nov 2018 13:36:51 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id 12NJI1EhrUIx for ; Mon, 12 Nov 2018 13:36:51 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id ECB7984C77 for ; Mon, 12 Nov 2018 13:36:50 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id E568BFB1F; Mon, 12 Nov 2018 13:36:50 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_154202981097140" MIME-Version: 1.0 Date: Mon, 12 Nov 2018 13:36:50 +0000 From: "Jonathan Perkin" Subject: CVS commit: pkgsrc/mk/tools To: pkgsrc-changes@NetBSD.org Reply-To: jperkin@netbsd.org X-Mailer: log_accum Message-Id: <20181112133650.E568BFB1F@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_154202981097140 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" 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. --_----------=_154202981097140 Content-Disposition: inline Content-Length: 1084 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii 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 --_----------=_154202981097140--