svn commit: r372086 - in head: . Mk
Bryan Drewery
bdrewery at FreeBSD.org
Sun Nov 2 20:01:33 UTC 2014
Author: bdrewery
Date: Sun Nov 2 20:01:31 2014
New Revision: 372086
URL: https://svnweb.freebsd.org/changeset/ports/372086
QAT: https://qat.redports.org/buildarchive/r372086/
Log:
- Enable SSP by default.
This is the culmination of years of work and testing including work by jlh at .
This will enable SSP by default for all amd64 releases, and i386 releases
10.0 and over.
With hat: portmgr
Tested by: multiple exp-runs, CFT package repository, CFT ports
Discussed with: bapt, antoine
Modified:
head/CHANGES
head/Mk/bsd.port.mk
head/Mk/bsd.ssp.mk
Modified: head/CHANGES
==============================================================================
--- head/CHANGES Sun Nov 2 19:41:43 2014 (r372085)
+++ head/CHANGES Sun Nov 2 20:01:31 2014 (r372086)
@@ -10,6 +10,14 @@ in the release notes and/or placed into
All ports committers are allowed to commit to this file.
+20141102:
+AUTHOR: bdrewery at FreeBSD.org
+
+ SSP is now default. This can be disabled with WITHOUT_SSP.
+ SSP_CFLAGS defaults to -fstack-protector.
+ SSP will be used on all amd64 releases. It will only be used on i386
+ releases over 10.0.
+
20141007:
AUTHOR: mat at FreeBSD.org
Modified: head/Mk/bsd.port.mk
==============================================================================
--- head/Mk/bsd.port.mk Sun Nov 2 19:41:43 2014 (r372085)
+++ head/Mk/bsd.port.mk Sun Nov 2 20:01:31 2014 (r372086)
@@ -317,8 +317,9 @@ FreeBSD_MAINTAINER= portmgr at FreeBSD.org
#
# WITH_DEBUG_PORTS - A list of origins for which WITH_DEBUG will be set
#
-# WITH_SSP_PORTS
-# - If set, SSP_FLAGS (defaults to -fstack-protector)
+# WITHOUT_SSP - Disable SSP.
+#
+# SSP_CFLAGS - Defaults to -fstack-protector. This value
# is added to CFLAGS and the necessary flags
# are added to LDFLAGS. Note that SSP_UNSAFE
# can be used in Makefiles by port maintainers
@@ -1636,7 +1637,7 @@ INSTALL_TARGET:= ${INSTALL_TARGET:S/^ins
.endif
.endif
-.if defined(WITH_SSP) || defined(WITH_SSP_PORTS)
+.if !defined(WITHOUT_SSP)
.include "${PORTSDIR}/Mk/bsd.ssp.mk"
.endif
Modified: head/Mk/bsd.ssp.mk
==============================================================================
--- head/Mk/bsd.ssp.mk Sun Nov 2 19:41:43 2014 (r372085)
+++ head/Mk/bsd.ssp.mk Sun Nov 2 20:01:31 2014 (r372086)
@@ -16,7 +16,7 @@ SSP_UNSAFE= yes
SSP_NEED_NONSHARED= yes
.endif
-.if !defined(WITHOUT_SSP) && !defined(SSP_UNSAFE) && \
+.if !defined(SSP_UNSAFE) && \
(${ARCH} == i386 || ${ARCH} == amd64)
# Overridable as a user may want to use -fstack-protector-all
SSP_CFLAGS?= -fstack-protector
More information about the svn-ports-head
mailing list