Framework: sync with upstream

Taken from: HardenedBSD
This commit is contained in:
Franco Fichtner 2019-04-23 06:21:13 +02:00
parent bdbaad4642
commit 1dd659eab9
2 changed files with 2 additions and 12 deletions

View file

@ -119,11 +119,6 @@ BUILD_DEPENDS+= rust-cbindgen>=0.6.8:devel/rust-cbindgen \
MOZ_OPTIONS+= --enable-pie
.endif
.if ${MOZILLA_VER:R:R} >= 65
# Let vendor add -fstack-protector-strong on all architectures
SSP_UNSAFE= yes
.endif
MOZILLA_SUFX?= none
MOZSRC?= ${WRKSRC}
PLISTF?= ${WRKDIR}/plist_files

View file

@ -4,14 +4,9 @@
SSP_Include_MAINTAINER= portmgr@FreeBSD.org
.if !defined(SSP_UNSAFE) && \
(${ARCH} == i386 || ${ARCH} == amd64)
(${MACHINE} != "mips")
# Overridable as a user may want to use -fstack-protector
SSP_CFLAGS?= -fstack-protector-all
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
LDFLAGS+= ${SSP_CFLAGS}
.endif