bsd.sys.mk (531c2d7af3cd2e64eec94aa1b19c4b2f16fce515) | bsd.sys.mk (de6feefdb7cfd0779277a6c451ce19d60b1d2b4d) |
---|---|
1# $FreeBSD$ 2# 3# This file contains common settings used for building FreeBSD 4# sources. 5 6# Enable various levels of compiler warning checks. These may be 7# overridden (e.g. if using a non-gcc compiler) by defining MK_WARNS=no. 8 --- 198 unchanged lines hidden (view full) --- 207# Don't use -Wstack-protector as it breaks world with -Werror. 208SSP_CFLAGS?= -fstack-protector-strong 209.else 210SSP_CFLAGS?= -fstack-protector 211.endif 212CFLAGS+= ${SSP_CFLAGS} 213.endif # SSP && !ARM && !MIPS 214 | 1# $FreeBSD$ 2# 3# This file contains common settings used for building FreeBSD 4# sources. 5 6# Enable various levels of compiler warning checks. These may be 7# overridden (e.g. if using a non-gcc compiler) by defining MK_WARNS=no. 8 --- 198 unchanged lines hidden (view full) --- 207# Don't use -Wstack-protector as it breaks world with -Werror. 208SSP_CFLAGS?= -fstack-protector-strong 209.else 210SSP_CFLAGS?= -fstack-protector 211.endif 212CFLAGS+= ${SSP_CFLAGS} 213.endif # SSP && !ARM && !MIPS 214 |
215# Additional flags passed in CFLAGS and CXXFLAGS when MK_DEBUG_FILES is 216# enabled. 217DEBUG_FILES_CFLAGS?= -g 218 |
|
215# Allow user-specified additional warning flags, plus compiler and file 216# specific flag overrides, unless we've overriden this... 217.if ${MK_WARNS} != "no" 218CFLAGS+= ${CWARNFLAGS:M*} ${CWARNFLAGS.${COMPILER_TYPE}} 219CFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}} 220.endif 221 222CFLAGS+= ${CFLAGS.${COMPILER_TYPE}} --- 140 unchanged lines hidden --- | 219# Allow user-specified additional warning flags, plus compiler and file 220# specific flag overrides, unless we've overriden this... 221.if ${MK_WARNS} != "no" 222CFLAGS+= ${CWARNFLAGS:M*} ${CWARNFLAGS.${COMPILER_TYPE}} 223CFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}} 224.endif 225 226CFLAGS+= ${CFLAGS.${COMPILER_TYPE}} --- 140 unchanged lines hidden --- |