Changeset View
Changeset View
Standalone View
Standalone View
share/mk/bsd.sys.mk
Show First 20 Lines • Show All 143 Lines • ▼ Show 20 Lines | |||||
# suppression when building the base system to catch bugs in our headers. | # suppression when building the base system to catch bugs in our headers. | ||||
# Eventually we'll want to start building the base system C++ code as C++11, | # Eventually we'll want to start building the base system C++ code as C++11, | ||||
# but not yet. | # but not yet. | ||||
CXXFLAGS.clang+= -Wno-c++11-extensions | CXXFLAGS.clang+= -Wno-c++11-extensions | ||||
.if ${MK_SSP} != "no" && \ | .if ${MK_SSP} != "no" && \ | ||||
${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips" | ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips" | ||||
# 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 | SSP_CFLAGS?= -fstack-protector-strong | ||||
CFLAGS+= ${SSP_CFLAGS} | CFLAGS+= ${SSP_CFLAGS} | ||||
.endif # SSP && !ARM && !MIPS | .endif # SSP && !ARM && !MIPS | ||||
# Allow user-specified additional warning flags, plus compiler specific flag overrides. | # Allow user-specified additional warning flags, plus compiler specific flag overrides. | ||||
# Unless we've overriden this... | # Unless we've overriden this... | ||||
.if ${MK_WARNS} != "no" | .if ${MK_WARNS} != "no" | ||||
CFLAGS+= ${CWARNFLAGS} ${CWARNFLAGS.${COMPILER_TYPE}} | CFLAGS+= ${CWARNFLAGS} ${CWARNFLAGS.${COMPILER_TYPE}} | ||||
.endif | .endif | ||||
▲ Show 20 Lines • Show All 125 Lines • Show Last 20 Lines |