summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2020-01-06 15:43:51 +0000
committerrillig <rillig@pkgsrc.org>2020-01-06 15:43:51 +0000
commitc0829ca1e9fa4264b5731e62b78050fbd564074d (patch)
treea1c7772fff323eb4687af4516694caea22024e83 /lang
parent6fa6590594d6102a6051b863b2a2925b313e0e97 (diff)
downloadpkgsrc-c0829ca1e9fa4264b5731e62b78050fbd564074d.tar.gz
lang/gcc9: fix build on NetBSD-9.0_RC1-amd64
gcc9 needs to install the fixed malloc.h in that configuration. On NetBSD-8.0-amd64 this was not necessary though.
Diffstat (limited to 'lang')
-rw-r--r--lang/gcc9/Makefile7
-rw-r--r--lang/gcc9/PLIST3
2 files changed, 8 insertions, 2 deletions
diff --git a/lang/gcc9/Makefile b/lang/gcc9/Makefile
index 4473a2bb073..1e6aca00121 100644
--- a/lang/gcc9/Makefile
+++ b/lang/gcc9/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2020/01/05 21:15:45 rillig Exp $
+# $NetBSD: Makefile,v 1.2 2020/01/06 15:43:51 rillig Exp $
GCC9_PKGBASE= gcc9
GCC9_VERSION= 9.2.0
@@ -180,6 +180,11 @@ post-install:
${TEST} -f ${DESTDIR}${GCC9_PREFIX}/bin/cc \
|| (cd ${DESTDIR}${GCC9_PREFIX}/bin && ${LN} -f gcc cc)
+PLIST_VARS+= fixed-malloc
+.if ${MACHINE_PLATFORM:MNetBSD-9.*-*}
+PLIST.fixed-malloc= yes
+.endif
+
PRINT_PLIST_AWK+= { gsub("${MACHINE_GNU_PLATFORM}", "$${MACHINE_GNU_PLATFORM}"); }
.include "../../devel/zlib/buildlink3.mk"
diff --git a/lang/gcc9/PLIST b/lang/gcc9/PLIST
index 8077e373fb6..9fe38bbe109 100644
--- a/lang/gcc9/PLIST
+++ b/lang/gcc9/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2020/01/05 21:15:45 rillig Exp $
+@comment $NetBSD: PLIST,v 1.2 2020/01/06 15:43:51 rillig Exp $
gcc9/bin/c++
gcc9/bin/cc
gcc9/bin/cpp
@@ -834,6 +834,7 @@ gcc9/lib/gcc/${MACHINE_GNU_PLATFORM}/${PKGVERSION}/finclude/openacc_lib.h
gcc9/lib/gcc/${MACHINE_GNU_PLATFORM}/${PKGVERSION}/include-fixed/README
gcc9/lib/gcc/${MACHINE_GNU_PLATFORM}/${PKGVERSION}/include-fixed/curses.h
gcc9/lib/gcc/${MACHINE_GNU_PLATFORM}/${PKGVERSION}/include-fixed/limits.h
+${PLIST.fixed-malloc}gcc9/lib/gcc/${MACHINE_GNU_PLATFORM}/${PKGVERSION}/include-fixed/malloc.h
gcc9/lib/gcc/${MACHINE_GNU_PLATFORM}/${PKGVERSION}/include-fixed/math.h
gcc9/lib/gcc/${MACHINE_GNU_PLATFORM}/${PKGVERSION}/include-fixed/netinet/ip_fil.h
gcc9/lib/gcc/${MACHINE_GNU_PLATFORM}/${PKGVERSION}/include-fixed/netinet/ip_lookup.h