mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
6f019c90b3
This does not yet convert the files to bmake. Reviewed by: mat Differential Revision: https://reviews.freebsd.org/D9016
18 lines
471 B
Makefile
18 lines
471 B
Makefile
# $FreeBSD$
|
|
# SSP Support
|
|
|
|
SSP_Include_MAINTAINER= portmgr@FreeBSD.org
|
|
|
|
.if !defined(SSP_UNSAFE) && \
|
|
(${ARCH} == i386 || ${ARCH} == amd64)
|
|
# Overridable as a user may want to use -fstack-protector-all
|
|
SSP_CFLAGS?= -fstack-protector
|
|
CFLAGS+= ${SSP_CFLAGS}
|
|
LDFLAGS+= -fstack-protector
|
|
# -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)
|
|
LDFLAGS+= -lssp_nonshared
|
|
. endif
|
|
.endif
|