| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.38 2016/09/06 12:00:33 maya Exp $ | | 1 | # $NetBSD: Makefile,v 1.39 2016/09/06 15:04:57 maya Exp $ |
2 | | | 2 | |
3 | GCC_PKGNAME= gcc47 | | 3 | GCC_PKGNAME= gcc47 |
4 | .include "version.mk" | | 4 | .include "version.mk" |
5 | | | 5 | |
6 | DISTNAME= gcc-${GCC47_DIST_VERSION} | | 6 | DISTNAME= gcc-${GCC47_DIST_VERSION} |
7 | PKGNAME= ${GCC_PKGNAME}-${GCC47_DIST_VERSION} | | 7 | PKGNAME= ${GCC_PKGNAME}-${GCC47_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/gcc47-libs needs to be bump to be at least 1 more than the | | 9 | ## lang/gcc47-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-${GCC47_DIST_VERSION}/} | | 13 | MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-${GCC47_DIST_VERSION}/} |
14 | EXTRACT_SUFX= .tar.bz2 | | 14 | EXTRACT_SUFX= .tar.bz2 |
| @@ -76,27 +76,26 @@ CONFIGURE_ARGS+= --disable-libstdcxx-pch | | | @@ -76,27 +76,26 @@ CONFIGURE_ARGS+= --disable-libstdcxx-pch |
76 | .endif | | 76 | .endif |
77 | | | 77 | |
78 | .if !empty(MACHINE_PLATFORM:MNetBSD-*-*) | | 78 | .if !empty(MACHINE_PLATFORM:MNetBSD-*-*) |
79 | # on NetBSD, use the native SSP code in libc | | 79 | # on NetBSD, use the native SSP code in libc |
80 | CONFIGURE_ARGS+= --disable-libssp | | 80 | CONFIGURE_ARGS+= --disable-libssp |
81 | .else | | 81 | .else |
82 | CONFIGURE_ARGS+= --enable-libssp | | 82 | CONFIGURE_ARGS+= --enable-libssp |
83 | .endif | | 83 | .endif |
84 | | | 84 | |
85 | CONFIGURE_ARGS+= --enable-languages=${LANGS:Q} | | 85 | CONFIGURE_ARGS+= --enable-languages=${LANGS:Q} |
86 | CONFIGURE_ARGS+= --enable-shared | | 86 | CONFIGURE_ARGS+= --enable-shared |
87 | CONFIGURE_ARGS+= --enable-long-long | | 87 | CONFIGURE_ARGS+= --enable-long-long |
88 | CONFIGURE_ARGS+= --with-local-prefix=${GCC_PREFIX:Q} | | 88 | CONFIGURE_ARGS+= --with-local-prefix=${GCC_PREFIX:Q} |
89 | CONFIGURE_ARGS+= --enable-libssp | | | |
90 | CONFIGURE_ARGS+= --enable-threads=posix | | 89 | CONFIGURE_ARGS+= --enable-threads=posix |
91 | CONFIGURE_ARGS+= --with-boot-ldflags=${BOOT_LDFLAGS:Q} | | 90 | CONFIGURE_ARGS+= --with-boot-ldflags=${BOOT_LDFLAGS:Q} |
92 | | | 91 | |
93 | CONFIGURE_ARGS.NetBSD+= --with-gnu-ld --with-ld=/usr/bin/ld | | 92 | CONFIGURE_ARGS.NetBSD+= --with-gnu-ld --with-ld=/usr/bin/ld |
94 | CONFIGURE_ARGS.NetBSD+= --with-gnu-as --with-as=/usr/bin/as | | 93 | CONFIGURE_ARGS.NetBSD+= --with-gnu-as --with-as=/usr/bin/as |
95 | MAKE_ENV.NetBSD+= ac_cv_func_clock_gettime=yes | | 94 | MAKE_ENV.NetBSD+= ac_cv_func_clock_gettime=yes |
96 | MAKE_ENV.NetBSD+= ac_cv_func_gethostbyname_r=no | | 95 | MAKE_ENV.NetBSD+= ac_cv_func_gethostbyname_r=no |
97 | | | 96 | |
98 | CONFIGURE_ARGS.DragonFly+= --disable-bootstrap | | 97 | CONFIGURE_ARGS.DragonFly+= --disable-bootstrap |
99 | | | 98 | |
100 | # See ${WRKSRC}/libgcc/config/t-slibgcc-darwin: It uses strip(1) to | | 99 | # See ${WRKSRC}/libgcc/config/t-slibgcc-darwin: It uses strip(1) to |
101 | # create a stub library, not just to remove symbols, so we must not | | 100 | # create a stub library, not just to remove symbols, so we must not |
102 | # let strip(1) be a no-op regardless of ${INSTALL_UNSTRIPPED} or the | | 101 | # let strip(1) be a no-op regardless of ${INSTALL_UNSTRIPPED} or the |