Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jan 2016 08:49:21 +0000 (UTC)
From:      Steven Hartland <smh@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r294974 - stable/10/share/mk
Message-ID:  <201601280849.u0S8nLps099278@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: smh
Date: Thu Jan 28 08:49:21 2016
New Revision: 294974
URL: https://svnweb.freebsd.org/changeset/base/294974

Log:
  MFC r294968:
  
  Allow file specific user-specified flag overrides.
  
  Sponsored by:	Multiplay

Modified:
  stable/10/share/mk/bsd.sys.mk
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/share/mk/bsd.sys.mk
==============================================================================
--- stable/10/share/mk/bsd.sys.mk	Thu Jan 28 03:24:06 2016	(r294973)
+++ stable/10/share/mk/bsd.sys.mk	Thu Jan 28 08:49:21 2016	(r294974)
@@ -149,8 +149,9 @@ SSP_CFLAGS?=	-fstack-protector
 CFLAGS+=	${SSP_CFLAGS}
 .endif # SSP && !IA64 && !ARM && !MIPS
 
-# Allow user-specified additional warning flags
-CFLAGS+=	${CWARNFLAGS}
+# Allow user-specified additional warning flags and file specific flag
+# overrides.
+CFLAGS+=	${CWARNFLAGS} ${CWARNFLAGS.${.IMPSRC:T}}
 
 
 # Tell bmake not to mistake standard targets for things to be searched for



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