Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 511698 | Differences between
and this patch

Collapse All | Expand All

(-)a/share/mk/bsd.sys.mk (-3 / +9 lines)
Lines 111-122 CLANG_OPT_SMALL= -mstack-alignment=8 -mllvm -inline-threshold=3\ Link Here
111
CFLAGS+=	 -Qunused-arguments
111
CFLAGS+=	 -Qunused-arguments
112
.endif # CLANG
112
.endif # CLANG
113
113
114
.if ${MK_SSP} != "no" && ${MACHINE_CPUARCH} != "ia64" && \
114
.if ${MACHINE_CPUARCH} != "ia64" && ${MACHINE_CPUARCH} != "arm" \
115
    ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips"
115
    && ${MACHINE_CPUARCH} != "mips"
116
.if ${MK_SSP} != "no"
116
# Don't use -Wstack-protector as it breaks world with -Werror.
117
# Don't use -Wstack-protector as it breaks world with -Werror.
117
SSP_CFLAGS?=	-fstack-protector
118
SSP_CFLAGS?=	-fstack-protector
119
.else
120
# gcc-4.9, -fstack-protector-strong is enabled by default.
121
# Add -fno-stack-protector to disable it. Gentoo Bug #511698.
122
SSP_CFLAGS=	-fno-stack-protector
123
.endif #SSP
118
CFLAGS+=	${SSP_CFLAGS}
124
CFLAGS+=	${SSP_CFLAGS}
119
.endif # SSP && !IA64 && !ARM && !MIPS
125
.endif # !IA64 && !ARM && !MIPS
120
126
121
# Allow user-specified additional warning flags
127
# Allow user-specified additional warning flags
122
CFLAGS+=	${CWARNFLAGS}
128
CFLAGS+=	${CWARNFLAGS}

Return to bug 511698