pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/platform Disable fortify on netbsd<6.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d40bdccfde52
branches:  trunk
changeset: 366256:d40bdccfde52
user:      maya <maya%pkgsrc.org@localhost>
date:      Mon Aug 07 23:44:53 2017 +0000

description:
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:

 mk/platform/NetBSD.mk |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 2de0495a34ad -r d40bdccfde52 mk/platform/NetBSD.mk
--- a/mk/platform/NetBSD.mk     Mon Aug 07 22:24:05 2017 +0000
+++ b/mk/platform/NetBSD.mk     Mon Aug 07 23:44:53 2017 +0000
@@ -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 @@
 .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") || \



Home | Main Index | Thread Index | Old Index