Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Apr 2016 22:22:03 +0000 (UTC)
From:      Garrett Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r298012 - head/share/mk
Message-ID:  <201604142222.u3EMM372063361@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Thu Apr 14 22:22:03 2016
New Revision: 298012
URL: https://svnweb.freebsd.org/changeset/base/298012

Log:
  Add DEBUG_FLAGS to PROG_VARS and STRIP to PROG_OVERRIDE_VARS
  
  This will allow the variables [*] to be overridden on a per-PROG basis,
  which is useful when controlling "stripping" behavior for some tests
  that require debug symbols or to be unstripped
  
  DEBUG_FLAGS (similar to CFLAGS) supports appending, whereas STRIP is
  an override
  
  *: Due to how STRIP is defined in bsd.own.mk (in addition to
  bsd.lib.mk and bsd.prog.mk), and the fact that bsd.test.mk pulls in
  bsd.own.mk first, overriding STRIP doesn't work today.
  
  A follow up commit is pending to "rectify" this after additional
  testing is done.
  
  Discussed with: bdrewery
  MFC after: 1 week
  Sponsored by: EMC / Isilon Storage Division

Modified:
  head/share/mk/bsd.progs.mk

Modified: head/share/mk/bsd.progs.mk
==============================================================================
--- head/share/mk/bsd.progs.mk	Thu Apr 14 22:13:46 2016	(r298011)
+++ head/share/mk/bsd.progs.mk	Thu Apr 14 22:22:03 2016	(r298012)
@@ -23,8 +23,8 @@ PROGS += ${PROGS_CXX}
 .if defined(PROG)
 # just one of many
 PROG_OVERRIDE_VARS +=	BINDIR BINGRP BINOWN BINMODE DPSRCS MAN NO_WERROR \
-			PROGNAME SRCS WARNS
-PROG_VARS +=	CFLAGS CXXFLAGS DPADD LDADD LIBADD LINKS \
+			PROGNAME SRCS STRIP WARNS
+PROG_VARS +=	CFLAGS CXXFLAGS DEBUG_FLAGS DPADD LDADD LIBADD LINKS \
 		LDFLAGS MLINKS ${PROG_OVERRIDE_VARS}
 .for v in ${PROG_VARS:O:u}
 .if empty(${PROG_OVERRIDE_VARS:M$v})



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604142222.u3EMM372063361>