summaryrefslogtreecommitdiff
path: root/mk/platform
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2018-11-05 19:26:38 +0000
committerschmonz <schmonz@pkgsrc.org>2018-11-05 19:26:38 +0000
commit9e1f862b9a733314385a0322f929b8fa9d79bdca (patch)
treed0653c610d2a07a0e74708d67add5402c577a5e0 /mk/platform
parent086c466672425bf2dbbbc793706a227b326bce44 (diff)
downloadpkgsrc-9e1f862b9a733314385a0322f929b8fa9d79bdca.tar.gz
Optionally detect whether the compiler supports "-fstack-protector-strong".
If not, set _OPSYS_SUPPORTS_SSP=no during bootstrap and in mk.conf. Do SSP detection on "SunOS", and let mk/platform/SunOS.mk's default "yes" be overridden in mk.conf. No change to generated mk.conf on NetBSD 8 or CentOS 6. Fixes bootstrap on Tribblix.
Diffstat (limited to 'mk/platform')
-rw-r--r--mk/platform/SunOS.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/platform/SunOS.mk b/mk/platform/SunOS.mk
index c35c864d568..c7cd4837fca 100644
--- a/mk/platform/SunOS.mk
+++ b/mk/platform/SunOS.mk
@@ -1,4 +1,4 @@
-# $NetBSD: SunOS.mk,v 1.77 2017/10/10 13:57:23 jperkin Exp $
+# $NetBSD: SunOS.mk,v 1.78 2018/11/05 19:26:38 schmonz Exp $
#
# Variable definitions for the SunOS/Solaris operating system.
@@ -131,7 +131,7 @@ _OPSYS_SUPPORTS_CWRAPPERS= yes
_OPSYS_SUPPORTS_FORTIFY=yes
# support stack protection (with GCC)
-_OPSYS_SUPPORTS_SSP= yes
+_OPSYS_SUPPORTS_SSP?= yes
_OPSYS_CAN_CHECK_SHLIBS= yes # requires readelf