View | Details | Raw Unified | Return to bug 203394 | Differences between
and this patch

Collapse All | Expand All

(-)Mk/bsd.ssp.mk (+4 lines)
Lines 19-25 Link Here
19
.if !defined(SSP_UNSAFE) && \
19
.if !defined(SSP_UNSAFE) && \
20
    (${ARCH} == i386 || ${ARCH} == amd64)
20
    (${ARCH} == i386 || ${ARCH} == amd64)
21
# Overridable as a user may want to use -fstack-protector-all
21
# Overridable as a user may want to use -fstack-protector-all
22
. if ${OSVERSION} > 1100051
23
SSP_CFLAGS?=	-fstack-protector-all
24
. elif
22
SSP_CFLAGS?=	-fstack-protector
25
SSP_CFLAGS?=	-fstack-protector
26
. endif
23
CFLAGS+=	${SSP_CFLAGS}
27
CFLAGS+=	${SSP_CFLAGS}
24
LDFLAGS+=	-fstack-protector
28
LDFLAGS+=	-fstack-protector
25
# -lssp_nonshared is needed on i386 where /usr/lib/libc.so is not an ldscript
29
# -lssp_nonshared is needed on i386 where /usr/lib/libc.so is not an ldscript

Return to bug 203394