summaryrefslogtreecommitdiff
path: root/mk/defaults
diff options
context:
space:
mode:
Diffstat (limited to 'mk/defaults')
-rw-r--r--mk/defaults/mk.conf14
1 files changed, 12 insertions, 2 deletions
diff --git a/mk/defaults/mk.conf b/mk/defaults/mk.conf
index e87e114a4a4..c2529bbd68e 100644
--- a/mk/defaults/mk.conf
+++ b/mk/defaults/mk.conf
@@ -1,4 +1,4 @@
-# $NetBSD: mk.conf,v 1.258 2015/07/26 22:13:17 khorben Exp $
+# $NetBSD: mk.conf,v 1.259 2015/08/10 21:44:34 khorben Exp $
#
# This file provides default values for variables that may be overridden
@@ -215,10 +215,20 @@ PKGSRC_RUN_TEST?= no
# Possible: yes, no
# Default: no
+PKGSRC_USE_FORT?= no
+# Turns on substitute wrappers for commonly used functions that do not bounds
+# checking regularly, but could in some cases (with GCC for instance).
+# Possible: yes, no
+# Default: no
+
+.if ${PKGSRC_USE_FORT:Uno} != "no"
+PKGSRC_USE_SSP?= yes
+.else
PKGSRC_USE_SSP?= no
+.endif
# Set this to YES to enable stack-smashing protection (on supported platforms).
# Possible: yes, no
-# Default: no
+# Default: no, except if PKGSRC_USE_FORT is set to "yes".
.if (!empty(MACHINE_PLATFORM:MNetBSD-*-*) && \
exists(/usr/X11R7/lib/libX11.so))