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