diff options
author | khorben <khorben@pkgsrc.org> | 2015-07-26 22:13:17 +0000 |
---|---|---|
committer | khorben <khorben@pkgsrc.org> | 2015-07-26 22:13:17 +0000 |
commit | 3098266ee9c6f169aeaa48359ab80d32a2150d59 (patch) | |
tree | d2a51992cf041582786d2ec545c7cb45584d560c /mk/defaults | |
parent | 6d02600cec5fee755bb72c3bf720d6408083ee58 (diff) | |
download | pkgsrc-3098266ee9c6f169aeaa48359ab80d32a2150d59.tar.gz |
Add support for compiling with stack-smashing protection
This is enabled with PKGSRC_USE_SSP in mk.conf(5), as documented there.
Most NetBSD platforms are supported (when compiling with gcc).
After consensus on tech-pkg@.
Diffstat (limited to 'mk/defaults')
-rw-r--r-- | mk/defaults/mk.conf | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/defaults/mk.conf b/mk/defaults/mk.conf index 31f72fe29cc..e87e114a4a4 100644 --- a/mk/defaults/mk.conf +++ b/mk/defaults/mk.conf @@ -1,4 +1,4 @@ -# $NetBSD: mk.conf,v 1.257 2015/07/04 16:18:38 joerg Exp $ +# $NetBSD: mk.conf,v 1.258 2015/07/26 22:13:17 khorben Exp $ # # This file provides default values for variables that may be overridden @@ -215,6 +215,11 @@ PKGSRC_RUN_TEST?= no # Possible: yes, no # Default: no +PKGSRC_USE_SSP?= no +# Set this to YES to enable stack-smashing protection (on supported platforms). +# Possible: yes, no +# Default: no + .if (!empty(MACHINE_PLATFORM:MNetBSD-*-*) && \ exists(/usr/X11R7/lib/libX11.so)) PREFER_PKGSRC?= |