mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-30 01:15:52 +00:00
c6dc82531e
has issues with 'installworld' when WITH_SSP is defined. [1] Keep WITH_SSP support for now since it has been announced as that already. - Remove redundant wording in UPDATING [2] Suggested by: bapt [1] Reported by: blakkheim on EFNet With hat: portmgr
31 lines
1.0 KiB
Makefile
31 lines
1.0 KiB
Makefile
# $FreeBSD$
|
|
# SSP Support
|
|
|
|
SSP_Include_MAINTAINER= portmgr@FreeBSD.org
|
|
|
|
# See: http://svnweb.freebsd.org/base/head/lib/libc/libc.ldscript?revision=251668&view=markup
|
|
.if ${OSVERSION} < 1000036 && ${ARCH} == i386
|
|
|
|
# Disabled on i386 for now on releases without the ldscript as too many ports
|
|
# do not respect LDFLAGS and fail to build due to not adding in -lssp_nonshared when needed
|
|
# despite dependencies working fine, which breaks a lot. Can enable once LDFLAGS is more
|
|
# supported. XXX
|
|
SSP_UNSAFE= yes
|
|
|
|
# i386 needs -lssp_nonshared, see svn link above for more information
|
|
SSP_NEED_NONSHARED= yes
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_SSP) && !defined(SSP_UNSAFE) && \
|
|
(${ARCH} == i386 || ${ARCH} == amd64)
|
|
# Overridable as a user may want to use -fstack-protector-all
|
|
SSP_CFLAGS?= -fstack-protector
|
|
CFLAGS:= ${CFLAGS} ${SSP_CFLAGS}
|
|
LDFLAGS:= ${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:= ${LDFLAGS} -lssp_nonshared
|
|
. endif
|
|
.endif
|