summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authormarino <marino@pkgsrc.org>2015-06-15 18:22:55 +0000
committermarino <marino@pkgsrc.org>2015-06-15 18:22:55 +0000
commit298546ef383f933c9e10f8562a4bc9d377350d0a (patch)
tree636568dfe0103eba60a3f06b09e15bc5818f2b87 /lang
parentce77e3de3c1ac8e22ca2e12bd3c1004fa4f3d174 (diff)
downloadpkgsrc-298546ef383f933c9e10f8562a4bc9d377350d0a.tar.gz
lang/gcc-aux: Fix build on NetBSD 7.0-Beta
Like lang/gcc5-aux, gcc-aux was failing to build on NetBSD 7.0-beta due to a "operation not permitted" error emitted by pkgsrc gold linker. The root cause isn't known (problem with NetBSD 7 full-stop? problem with binutils, but only NetBSD7?). However, the base binutils which is version 2.23 is sufficient (barely) for gcc 4.9. The build failure is solved by using base binutils for NetBSD 7*. No revbump required because there is no change for platforms on which gcc-aux has already potentially been built. NOTE: As noted on gcc5-aux, stack-checks that passed on NetBSD 5 and 6 are now failing on GNAT on NetBSD 7. This is because the signal trampoline has apparently changed and the pattern the unwinder was looking for is never found, resulting in a segfault instead of a frame unwind. The fix would be to determine the new signal trampoline pattern and have it switch based on param.h version (or something like that).
Diffstat (limited to 'lang')
-rw-r--r--lang/gcc-aux/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/lang/gcc-aux/Makefile b/lang/gcc-aux/Makefile
index 3cce40a8346..4eae50cb13b 100644
--- a/lang/gcc-aux/Makefile
+++ b/lang/gcc-aux/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.24 2015/06/14 19:46:51 marino Exp $
+# $NetBSD: Makefile,v 1.25 2015/06/15 18:22:55 marino Exp $
#
PKGNAME= gcc-aux-${SNAPSHOT}
@@ -63,7 +63,7 @@ NSUFF= ${OS_VERSION}
NELF= elf
. endif
XLDF= -lm
-. if empty(OS_VERSION:M7.99.*)
+. if ${OS_VERSION:R} < 7
MODERN_BINUTILS= yes
. endif
BOOTSTRAP_COMPILER= ada-bootstrap.${GARCH}.netbsd.614.tar.bz2