diff options
author | smh <smh@FreeBSD.org> | 2016-01-28 08:49:21 +0000 |
---|---|---|
committer | smh <smh@FreeBSD.org> | 2016-01-28 08:49:21 +0000 |
commit | c9b359acaab2bd3924abdc31463384b1d7779f40 (patch) | |
tree | fdbde745daeb1b46ed2e90a0eb76b23afd9bc01a | |
parent | 8d0ca4509b082e2dfd7beac098026bda23691483 (diff) | |
download | FreeBSD-src-c9b359acaab2bd3924abdc31463384b1d7779f40.zip FreeBSD-src-c9b359acaab2bd3924abdc31463384b1d7779f40.tar.gz |
MFC r294968:
Allow file specific user-specified flag overrides.
Sponsored by: Multiplay
-rw-r--r-- | share/mk/bsd.sys.mk | 5 |
1 files 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 |