| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.28 2020/03/13 15:00:36 bacon Exp $ | | 1 | # $NetBSD: Makefile,v 1.29 2020/03/18 19:50:52 rillig Exp $ |
2 | | | 2 | |
3 | GCC_PKGNAME= gcc7 | | 3 | GCC_PKGNAME= gcc7 |
4 | .include "version.mk" | | 4 | .include "version.mk" |
5 | | | 5 | |
6 | DISTNAME= gcc-${GCC7_DIST_VERSION} | | 6 | DISTNAME= gcc-${GCC7_DIST_VERSION} |
7 | PKGNAME= ${GCC_PKGNAME}-${GCC7_DIST_VERSION} | | 7 | PKGNAME= ${GCC_PKGNAME}-${GCC7_DIST_VERSION} |
8 | PKGREVISION= 1 | | 8 | PKGREVISION= 1 |
9 | ## When bumping the PKGREVISION of this package the PKGREVISION of | | 9 | ## When bumping the PKGREVISION of this package the PKGREVISION of |
10 | ## lang/gcc7-libs needs to be bump to be at least 1 more than the | | 10 | ## lang/gcc7-libs needs to be bump to be at least 1 more than the |
11 | ## PKGREVISION of this package! | | 11 | ## PKGREVISION of this package! |
12 | CATEGORIES= lang | | 12 | CATEGORIES= lang |
13 | MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-${GCC7_DIST_VERSION}/} | | 13 | MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-${GCC7_DIST_VERSION}/} |
14 | EXTRACT_SUFX= .tar.xz | | 14 | EXTRACT_SUFX= .tar.xz |
| @@ -37,26 +37,31 @@ GCC_PREFIX= ${PREFIX}/${GCC_SUBPREFIX} | | | @@ -37,26 +37,31 @@ GCC_PREFIX= ${PREFIX}/${GCC_SUBPREFIX} |
37 | GNU_CONFIGURE_PREFIX= ${GCC_PREFIX} | | 37 | GNU_CONFIGURE_PREFIX= ${GCC_PREFIX} |
38 | INFO_FILES= yes | | 38 | INFO_FILES= yes |
39 | CONFIGURE_ARGS+= --disable-libstdcxx-pch | | 39 | CONFIGURE_ARGS+= --disable-libstdcxx-pch |
40 | | | 40 | |
41 | UNLIMIT_RESOURCES+= datasize | | 41 | UNLIMIT_RESOURCES+= datasize |
42 | UNLIMIT_RESOURCES+= stacksize | | 42 | UNLIMIT_RESOURCES+= stacksize |
43 | | | 43 | |
44 | SUBST_CLASSES+= vars | | 44 | SUBST_CLASSES+= vars |
45 | SUBST_MESSAGE.vars= Setting target machine name path in ${SUBST_FILES.vars} | | 45 | SUBST_MESSAGE.vars= Setting target machine name path in ${SUBST_FILES.vars} |
46 | SUBST_STAGE.vars= pre-configure | | 46 | SUBST_STAGE.vars= pre-configure |
47 | SUBST_FILES.vars= gcc/Makefile.in | | 47 | SUBST_FILES.vars= gcc/Makefile.in |
48 | SUBST_VARS.vars= MACHINE_GNU_PLATFORM | | 48 | SUBST_VARS.vars= MACHINE_GNU_PLATFORM |
49 | | | 49 | |
| | | 50 | # These programs use [[ ... ]] and are not needed for the build. |
| | | 51 | CHECK_PORTABILITY_CHECK+= \ |
| | | 52 | contrib/prepare_patch.sh \ |
| | | 53 | contrib/patch_tester.sh |
| | | 54 | |
50 | .include "../../mk/bsd.prefs.mk" | | 55 | .include "../../mk/bsd.prefs.mk" |
51 | | | 56 | |
52 | LANGS= c | | 57 | LANGS= c |
53 | | | 58 | |
54 | # In some cases LINKER_RPATH_FLAG needs a trailing space. | | 59 | # In some cases LINKER_RPATH_FLAG needs a trailing space. |
55 | LINKER_RPATH_FLAG:= ${LINKER_RPATH_FLAG:S/-rpath/& /} | | 60 | LINKER_RPATH_FLAG:= ${LINKER_RPATH_FLAG:S/-rpath/& /} |
56 | | | 61 | |
57 | ## The Library rpath to use in end programs. | | 62 | ## The Library rpath to use in end programs. |
58 | LDFLAGS_FOR_TARGET= ${LDFLAGS:M${COMPILER_RPATH_FLAG}*:N*/usr/lib*} ${LDFLAGS:M-Wl,-z*} | | 63 | LDFLAGS_FOR_TARGET= ${LDFLAGS:M${COMPILER_RPATH_FLAG}*:N*/usr/lib*} ${LDFLAGS:M-Wl,-z*} |
59 | | | 64 | |
60 | # The "-static-libstdc++ -static-libgcc" flags are normally added to the | | 65 | # The "-static-libstdc++ -static-libgcc" flags are normally added to the |
61 | # boot-ldflags by configure but because we are supply the boot-ldflags | | 66 | # boot-ldflags by configure but because we are supply the boot-ldflags |
62 | # we mash supply them. | | 67 | # we mash supply them. |