Changeset View
Changeset View
Standalone View
Standalone View
head/share/mk/bsd.sys.mk
Show First 20 Lines • Show All 144 Lines • ▼ Show 20 Lines | |||||
# 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" | ||||
.if (${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 30500) || \ | .if (${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 30500) || \ | ||||
(${COMPILER_TYPE} == "gcc" && \ | (${COMPILER_TYPE} == "gcc" && \ | ||||
(${COMPILER_VERSION} == 40201 || ${COMPILER_VERSION} >= 40800)) | (${COMPILER_VERSION} == 40201 || ${COMPILER_VERSION} >= 40900)) | ||||
# 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 | ||||
CFLAGS+= ${SSP_CFLAGS} | .else | ||||
SSP_CFLAGS?= -fstack-protector | |||||
.endif | .endif | ||||
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 123 Lines • Show Last 20 Lines |