diff options
-rw-r--r-- | lang/gcc5-aux/Makefile | 6 | ||||
-rw-r--r-- | lang/gcc6-aux/Makefile | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/lang/gcc5-aux/Makefile b/lang/gcc5-aux/Makefile index 5f2c654d3e0..e1324f6426b 100644 --- a/lang/gcc5-aux/Makefile +++ b/lang/gcc5-aux/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2018/04/02 09:30:06 wiz Exp $ +# $NetBSD: Makefile,v 1.11 2019/08/05 21:16:39 maya Exp $ PKGNAME= gcc5-aux-${SNAPSHOT} PKGREVISION= ${MAIN_PR} @@ -225,6 +225,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 diff --git a/lang/gcc6-aux/Makefile b/lang/gcc6-aux/Makefile index f2ef448c986..c3cdbed08ed 100644 --- a/lang/gcc6-aux/Makefile +++ b/lang/gcc6-aux/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.3 2018/10/01 12:32:15 ryoon Exp $ +# $NetBSD: Makefile,v 1.4 2019/08/05 21:16:39 maya Exp $ PKGNAME= gcc6-aux-${SNAPSHOT} PKGREVISION= ${MAIN_PR} @@ -219,6 +219,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_)|defined(__NetBSD__)|' {} \; .endif .if defined(STATIC_BUILD) || !empty(PKG_OPTIONS:Mbootstrap) . if ${OPSYS} != SunOS |