| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.14 2020/02/12 04:28:35 rillig Exp $ | | 1 | # $NetBSD: Makefile,v 1.15 2020/02/23 19:10:08 rillig Exp $ |
2 | | | 2 | |
3 | GCC9_VERSION= 9.2.0 | | 3 | GCC9_VERSION= 9.2.0 |
4 | | | 4 | |
5 | DISTNAME= gcc-${GCC9_VERSION} | | 5 | DISTNAME= gcc-${GCC9_VERSION} |
6 | PKGNAME= gcc9-${GCC9_VERSION} | | 6 | PKGNAME= gcc9-${GCC9_VERSION} |
7 | PKGREVISION= 1 | | 7 | PKGREVISION= 1 |
8 | CATEGORIES= lang | | 8 | CATEGORIES= lang |
9 | MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-${GCC9_VERSION}/} | | 9 | MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-${GCC9_VERSION}/} |
10 | EXTRACT_SUFX= .tar.xz | | 10 | EXTRACT_SUFX= .tar.xz |
11 | | | 11 | |
12 | MAINTAINER= rillig@NetBSD.org | | 12 | MAINTAINER= rillig@NetBSD.org |
13 | HOMEPAGE= https://gcc.gnu.org/ | | 13 | HOMEPAGE= https://gcc.gnu.org/ |
14 | COMMENT= The GNU Compiler Collection (GCC) - Release 9 Series | | 14 | COMMENT= The GNU Compiler Collection (GCC) - Release 9 Series |
| @@ -27,32 +27,26 @@ GNU_CONFIGURE_STRICT= no # has several c | | | @@ -27,32 +27,26 @@ GNU_CONFIGURE_STRICT= no # has several c |
27 | OBJDIR= ${WRKDIR}/build | | 27 | OBJDIR= ${WRKDIR}/build |
28 | CONFIGURE_DIRS= ${OBJDIR} | | 28 | CONFIGURE_DIRS= ${OBJDIR} |
29 | CONFIGURE_SCRIPT= ../${DISTNAME}/configure | | 29 | CONFIGURE_SCRIPT= ../${DISTNAME}/configure |
30 | GCC9_SUBPREFIX= gcc9 | | 30 | GCC9_SUBPREFIX= gcc9 |
31 | GCC9_PREFIX= ${PREFIX}/${GCC9_SUBPREFIX} | | 31 | GCC9_PREFIX= ${PREFIX}/${GCC9_SUBPREFIX} |
32 | GNU_CONFIGURE_PREFIX= ${GCC9_PREFIX} | | 32 | GNU_CONFIGURE_PREFIX= ${GCC9_PREFIX} |
33 | INFO_FILES= yes | | 33 | INFO_FILES= yes |
34 | CONFIGURE_ARGS+= --disable-libstdcxx-pch | | 34 | CONFIGURE_ARGS+= --disable-libstdcxx-pch |
35 | CONFIGURE_ARGS+= --with-system-zlib | | 35 | CONFIGURE_ARGS+= --with-system-zlib |
36 | CONFIGURE_ARGS.Linux+= --without-system-zlib # to prevent "-lz not found" | | 36 | CONFIGURE_ARGS.Linux+= --without-system-zlib # to prevent "-lz not found" |
37 | | | 37 | |
38 | UNLIMIT_RESOURCES= datasize stacksize | | 38 | UNLIMIT_RESOURCES= datasize stacksize |
39 | | | 39 | |
40 | SUBST_CLASSES+= vars | | | |
41 | SUBST_MESSAGE.vars= Setting target machine name path | | | |
42 | SUBST_STAGE.vars= pre-configure | | | |
43 | SUBST_FILES.vars= gcc/Makefile.in | | | |
44 | SUBST_VARS.vars= GCC_TARGET_MACHINE | | | |
45 | | | | |
46 | # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90142 | | 40 | # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90142 |
47 | CHECK_PORTABILITY_SKIP= contrib/download_prerequisites | | 41 | CHECK_PORTABILITY_SKIP= contrib/download_prerequisites |
48 | | | 42 | |
49 | .include "../../mk/bsd.prefs.mk" | | 43 | .include "../../mk/bsd.prefs.mk" |
50 | | | 44 | |
51 | # Prevent compilation error on RedHat EL 7: | | 45 | # Prevent compilation error on RedHat EL 7: |
52 | # | | 46 | # |
53 | # compute_powtab.c: In function 'mpn_compute_powtab_mul': | | 47 | # compute_powtab.c: In function 'mpn_compute_powtab_mul': |
54 | # compute_powtab.c:142:3: error: 'for' loop initial declarations are only allowed in C99 mode | | 48 | # compute_powtab.c:142:3: error: 'for' loop initial declarations are only allowed in C99 mode |
55 | # for (long pi = start_idx; pi >= 0; pi--) | | 49 | # for (long pi = start_idx; pi >= 0; pi--) |
56 | # | | 50 | # |
57 | # I know that -std is not a preprocessor flag, but gcc9 ignores the CFLAGS, | | 51 | # I know that -std is not a preprocessor flag, but gcc9 ignores the CFLAGS, |
58 | # for whatever reason. | | 52 | # for whatever reason. |