Changeset View
Changeset View
Standalone View
Standalone View
share/mk/bsd.sys.mk
Show First 20 Lines • Show All 147 Lines • ▼ Show 20 Lines | |||||
.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 | ||||
CFLAGS+= ${SSP_CFLAGS} | CFLAGS+= ${SSP_CFLAGS} | ||||
.endif # SSP && !ARM && !MIPS | .endif # SSP && !ARM && !MIPS | ||||
# Allow to override the MK_FORTIFY settings per compiler basis. | |||||
pfg: This is unnecessary at this time.
I only want the libc support built in by default. | |||||
.if defined(MK_FORTIFY.${COMPILER_TYPE}) | |||||
MK_FORTIFY= ${MK_FORTIFY.${COMPILER_TYPE}} | |||||
.endif | |||||
.if ${MK_FORTIFY} != "no" | |||||
FORTIFY_CFLAGS?= -D_FORTIFY_SOURCE=1 | |||||
CFLAGS+= ${FORTIFY_CFLAGS} | |||||
.endif # FORTIFY | |||||
# 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 | ||||
CFLAGS+= ${CFLAGS.${COMPILER_TYPE}} | CFLAGS+= ${CFLAGS.${COMPILER_TYPE}} | ||||
CXXFLAGS+= ${CXXFLAGS.${COMPILER_TYPE}} | CXXFLAGS+= ${CXXFLAGS.${COMPILER_TYPE}} | ||||
▲ Show 20 Lines • Show All 122 Lines • Show Last 20 Lines |
This is unnecessary at this time.
I only want the libc support built in by default.