summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormaya <maya@pkgsrc.org>2019-09-08 09:24:04 +0000
committermaya <maya@pkgsrc.org>2019-09-08 09:24:04 +0000
commit8eef477bafaa7cd80bcaf3b4f8669472e4b4b271 (patch)
tree4d76f67322cf73d36d444ddd68133ccec8f13974
parent8918e77ccdd5cff3c1eade7c880472123e62e613 (diff)
downloadpkgsrc-8eef477bafaa7cd80bcaf3b4f8669472e4b4b271.tar.gz
gcc-aux: amend fixincludes in the bootstrap compiler on NetBSD
Prior to GCC 9, they were exceptionally fragile, and happened to break with NetBSD 9.x.
-rw-r--r--lang/gcc-aux/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/lang/gcc-aux/Makefile b/lang/gcc-aux/Makefile
index 9d59c984e19..320c83862ed 100644
--- a/lang/gcc-aux/Makefile
+++ b/lang/gcc-aux/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.32 2019/08/11 13:21:19 wiz Exp $
+# $NetBSD: Makefile,v 1.33 2019/09/08 09:24:04 maya Exp $
PKGNAME= gcc-aux-${SNAPSHOT}
PKGREVISION= 4
@@ -238,6 +238,10 @@ post-extract:
${PERL5} -pi -e 's|new Long_Integer|new Integer|' \
${WRKSRC}/gcc/ada/s-osprim-posix.adb
. endif
+ # GCC < 9's fixincludes is broken for NetBSD >= 9.0 (PR pkg/54362)
+ # This affects the bootstrap GCC used, too.
+ # Fixed in https://github.com/gcc-mirror/gcc/commit/c7af124dca795b835d7fda24192b9e4849f1bb08
+ ${FIND} ${WRKDIR} -name stddef.h -exec ${SED} -i -e 's|defined(_ANSI_H_)|1|' {} \;
.endif
.if defined(STATIC_BUILD) || !empty(PKG_OPTIONS:Mbootstrap)
. if ${OPSYS} != SunOS