2013-09-20 14:54:54 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
# SSP Support
|
|
|
|
|
|
|
|
SSP_Include_MAINTAINER= portmgr@FreeBSD.org
|
|
|
|
|
2014-11-02 21:01:31 +01:00
|
|
|
.if !defined(SSP_UNSAFE) && \
|
2013-09-20 14:54:54 +02:00
|
|
|
(${ARCH} == i386 || ${ARCH} == amd64)
|
|
|
|
# Overridable as a user may want to use -fstack-protector-all
|
|
|
|
SSP_CFLAGS?= -fstack-protector
|
2014-08-16 23:18:49 +02:00
|
|
|
CFLAGS+= ${SSP_CFLAGS}
|
|
|
|
LDFLAGS+= -fstack-protector
|
2013-09-20 14:54:54 +02:00
|
|
|
# -lssp_nonshared is needed on i386 where /usr/lib/libc.so is not an ldscript
|
|
|
|
# This is currently unused XXX
|
|
|
|
. if defined(SSP_NEED_NONSHARED)
|
2014-08-16 23:18:49 +02:00
|
|
|
LDFLAGS+= -lssp_nonshared
|
2013-09-20 14:54:54 +02:00
|
|
|
. endif
|
|
|
|
.endif
|