From c9b359acaab2bd3924abdc31463384b1d7779f40 Mon Sep 17 00:00:00 2001 From: smh Date: Thu, 28 Jan 2016 08:49:21 +0000 Subject: MFC r294968: Allow file specific user-specified flag overrides. Sponsored by: Multiplay --- share/mk/bsd.sys.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk index 9ac01f4..b36e1ba 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -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 -- cgit v1.1