mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-27 11:55:06 +00:00
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
This commit is contained in:
parent
bb39a9ed8e
commit
ff7ea78834
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=293905
@ -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}}
|
||||
|
Loading…
Reference in New Issue
Block a user