summaryrefslogtreecommitdiff
path: root/Mk/Features/ssp.mk
blob: 4213e6d668a6baaadd702512729de008d759c34e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# SSP Support

.if !defined(_SSP_MK_INCLUDED)
_SSP_MK_INCLUDED=	yes
SSP_Include_MAINTAINER=	portmgr@FreeBSD.org

.  if !defined(SSP_UNSAFE) && \
    (! ${ARCH:Mmips*})
# Overridable as a user may want to use -fstack-protector-all
SSP_CFLAGS?=	-fstack-protector-strong
CFLAGS+=	${SSP_CFLAGS}
LDFLAGS+=	${SSP_CFLAGS}
.  endif
.endif