Changeset View
Changeset View
Standalone View
Standalone View
share/mk/bsd.sys.mk
Show First 20 Lines • Show All 206 Lines • ▼ Show 20 Lines | |||||
# Don't use -Wstack-protector as it breaks world with -Werror. | # Don't use -Wstack-protector as it breaks world with -Werror. | ||||
SSP_CFLAGS?= -fstack-protector-strong | SSP_CFLAGS?= -fstack-protector-strong | ||||
.else | .else | ||||
SSP_CFLAGS?= -fstack-protector | SSP_CFLAGS?= -fstack-protector | ||||
.endif | .endif | ||||
CFLAGS+= ${SSP_CFLAGS} | CFLAGS+= ${SSP_CFLAGS} | ||||
.endif # SSP && !ARM && !MIPS | .endif # SSP && !ARM && !MIPS | ||||
# Additional flags passed in CFLAGS and CXXFLAGS when MK_DEBUG_FILES is | |||||
# enabled. | |||||
DEBUG_FILES_CFLAGS?= -g | |||||
# Allow user-specified additional warning flags, plus compiler and file | # Allow user-specified additional warning flags, plus compiler and file | ||||
# specific flag overrides, unless we've overriden this... | # specific flag overrides, unless we've overriden this... | ||||
.if ${MK_WARNS} != "no" | .if ${MK_WARNS} != "no" | ||||
CFLAGS+= ${CWARNFLAGS:M*} ${CWARNFLAGS.${COMPILER_TYPE}} | CFLAGS+= ${CWARNFLAGS:M*} ${CWARNFLAGS.${COMPILER_TYPE}} | ||||
CFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}} | CFLAGS+= ${CWARNFLAGS.${.IMPSRC:T}} | ||||
.endif | .endif | ||||
CFLAGS+= ${CFLAGS.${COMPILER_TYPE}} | CFLAGS+= ${CFLAGS.${COMPILER_TYPE}} | ||||
▲ Show 20 Lines • Show All 140 Lines • Show Last 20 Lines |