Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Jan 2016 10:09:05 +0000 (UTC)
From:      Steven Hartland <smh@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r293905 - head/share/mk
Message-ID:  <201601141009.u0EA95xM037646@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: smh
Date: Thu Jan 14 10:09:05 2016
New Revision: 293905
URL: https://svnweb.freebsd.org/changeset/base/293905

Log:
  Allow file specific user-specified flag overrides
  
  Allow user-specified warning flag overrides for specific files under
  bsd.sys.mk, in the same way kern.mk does.
  
  This will to be used by future commits.
  
  MFC after:	2 weeks
  X-MFC-With:	r293268
  Sponsored by:	Multiplay

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

Modified: head/share/mk/bsd.sys.mk
==============================================================================
--- head/share/mk/bsd.sys.mk	Thu Jan 14 10:08:58 2016	(r293904)
+++ head/share/mk/bsd.sys.mk	Thu Jan 14 10:09:05 2016	(r293905)
@@ -164,10 +164,11 @@ SSP_CFLAGS?=	-fstack-protector
 CFLAGS+=	${SSP_CFLAGS}
 .endif # SSP && !ARM && !MIPS
 
-# Allow user-specified additional warning flags, plus compiler specific flag overrides.
-# Unless we've overriden this...
+# Allow user-specified additional warning flags, plus compiler and file
+# specific flag overrides, unless we've overriden this...
 .if ${MK_WARNS} != "no"
 CFLAGS+=	${CWARNFLAGS} ${CWARNFLAGS.${COMPILER_TYPE}}
+CFLAGS+=	${CWARNFLAGS.${.IMPSRC:T}}
 .endif
 
 CFLAGS+=	 ${CFLAGS.${COMPILER_TYPE}}



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