summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authormaya <maya@pkgsrc.org>2017-08-07 23:44:53 +0000
committermaya <maya@pkgsrc.org>2017-08-07 23:44:53 +0000
commit975abe07263a81ab9045c5a4e1a3d26a9ae71bf8 (patch)
treee8ce998ed4db839ab6f83625acabcf9b71871898 /mk
parent0492447191345dd14ba46046e8a39f60e4b88970 (diff)
downloadpkgsrc-975abe07263a81ab9045c5a4e1a3d26a9ae71bf8.tar.gz
Disable fortify on netbsd<6.
This appears to be causing issues with pkgsrc GCC attempting to insert builtins it does not have, because we don't build libssp. unbreaks icu build. there may be more problems from this issue in the future, but netbsd-7 is better tested now.
Diffstat (limited to 'mk')
-rw-r--r--mk/platform/NetBSD.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/mk/platform/NetBSD.mk b/mk/platform/NetBSD.mk
index 9434726422c..7e34da89d0c 100644
--- a/mk/platform/NetBSD.mk
+++ b/mk/platform/NetBSD.mk
@@ -1,4 +1,4 @@
-# $NetBSD: NetBSD.mk,v 1.53 2017/07/24 08:19:08 maya Exp $
+# $NetBSD: NetBSD.mk,v 1.54 2017/08/07 23:44:53 maya Exp $
#
# Variable definitions for the NetBSD operating system.
@@ -129,7 +129,12 @@ PKG_HAVE_KQUEUE= # defined
.endif
# Register support for FORTIFY (with GCC)
+.if !empty(OS_VERSION:M[2-6].*)
+# Disable on older versions, see:
+# http://mail-index.netbsd.org/pkgsrc-users/2017/08/07/msg025435.html
+.else
_OPSYS_SUPPORTS_FORTIFY=yes
+.endif
# Register support for PIE on supported architectures (with GCC)
.if (${MACHINE_ARCH} == "i386") || \