diff options
author | smh <smh@FreeBSD.org> | 2016-01-14 10:09:05 +0000 |
---|---|---|
committer | smh <smh@FreeBSD.org> | 2016-01-14 10:09:05 +0000 |
commit | d697e9a3e47062061cf162a3fe8bff412f41dcc1 (patch) | |
tree | 1da0d007f2f3508c65958f3bd1ca39129ec7f9cc /share/mk | |
parent | 82ccb2c6c79db6308b1b71bac5cf8f05d0123049 (diff) | |
download | FreeBSD-src-d697e9a3e47062061cf162a3fe8bff412f41dcc1.zip FreeBSD-src-d697e9a3e47062061cf162a3fe8bff412f41dcc1.tar.gz |
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
Diffstat (limited to 'share/mk')
-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 de62195..7ac7917 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -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}} |