| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.4 2014/11/28 11:47:00 bsiegert Exp $ | | 1 | # $NetBSD: Makefile,v 1.5 2015/06/10 20:20:42 ryoon Exp $ |
2 | | | 2 | |
3 | GCC_PKGNAME= gcc49 | | 3 | GCC_PKGNAME= gcc49 |
4 | .include "version.mk" | | 4 | .include "version.mk" |
5 | | | 5 | |
6 | DISTNAME= gcc-${GCC49_DIST_VERSION} | | 6 | DISTNAME= gcc-${GCC49_DIST_VERSION} |
7 | PKGNAME= ${GCC_PKGNAME}-${GCC49_DIST_VERSION} | | 7 | PKGNAME= ${GCC_PKGNAME}-${GCC49_DIST_VERSION} |
8 | | | 8 | |
9 | ## When bumping the PKGREVISION of this package the PKGREVISION of | | 9 | ## When bumping the PKGREVISION of this package the PKGREVISION of |
10 | ## lang/gcc49-libs needs to be bump to be at least 1 more than the | | 10 | ## lang/gcc49-libs needs to be bump to be at least 1 more than the |
11 | ## PKGREVISION of this package! | | 11 | ## PKGREVISION of this package! |
12 | PKGREVISION= 1 | | 12 | PKGREVISION= 1 |
13 | | | 13 | |
14 | CATEGORIES= lang | | 14 | CATEGORIES= lang |
| @@ -102,47 +102,57 @@ CONFIGURE_ARGS+= --disable-multili | | | @@ -102,47 +102,57 @@ CONFIGURE_ARGS+= --disable-multili |
102 | | | 102 | |
103 | .if !empty(MACHINE_PLATFORM:MNetBSD-*-i386) || !empty(MACHINE_PLATFORM:MLinux-*-i386) | | 103 | .if !empty(MACHINE_PLATFORM:MNetBSD-*-i386) || !empty(MACHINE_PLATFORM:MLinux-*-i386) |
104 | CONFIGURE_ARGS+= --with-arch=i486 --with-tune=i486 | | 104 | CONFIGURE_ARGS+= --with-arch=i486 --with-tune=i486 |
105 | .endif | | 105 | .endif |
106 | | | 106 | |
107 | .include "options.mk" | | 107 | .include "options.mk" |
108 | | | 108 | |
109 | # ${WRKSRC}/fixincludes/ looks for sed and compiles the path to sed into | | 109 | # ${WRKSRC}/fixincludes/ looks for sed and compiles the path to sed into |
110 | # a binary so we need to make sure we give it the installed sed and not | | 110 | # a binary so we need to make sure we give it the installed sed and not |
111 | # the tool wrapped one. | | 111 | # the tool wrapped one. |
112 | MAKE_ENV+= ac_cv_path_SED=${TOOLS_SED} | | 112 | MAKE_ENV+= ac_cv_path_SED=${TOOLS_SED} |
113 | MAKE_ENV+= lt_cv_path_SED=${TOOLS_SED} | | 113 | MAKE_ENV+= lt_cv_path_SED=${TOOLS_SED} |
114 | | | 114 | |
115 | .if ${OPSYS} == "SunOS" | | 115 | .if !empty(MACHINE_PLATFORM:MSunOS-5.1[123456789]-*) |
116 | # Causes multilib build problems with specific compiler combinations | | 116 | # Causes multilib build problems with specific compiler combinations |
117 | MAKE_ENV+= gcc_cv_ld_as_needed=no | | 117 | MAKE_ENV+= gcc_cv_ld_as_needed=no |
118 | # Determine whether to use binutils | | 118 | # Determine whether to use binutils |
119 | . if exists(/usr/sfw/bin/gobjdump) | | 119 | . if exists(/usr/sfw/bin/gobjdump) |
120 | CONFIGURE_ENV+= OBJDUMP=/usr/sfw/bin/gobjdump | | 120 | CONFIGURE_ENV+= OBJDUMP=/usr/sfw/bin/gobjdump |
121 | . endif | | 121 | . endif |
122 | . if exists(/usr/bin/ld) | | 122 | . if exists(/usr/bin/ld) |
123 | CONFIGURE_ARGS+= --without-gnu-ld --with-ld=/usr/bin/ld | | 123 | CONFIGURE_ARGS+= --without-gnu-ld --with-ld=/usr/bin/ld |
124 | . else | | 124 | . else |
125 | CONFIGURE_ARGS+= --without-gnu-ld --with-ld=/usr/ccs/bin/ld | | 125 | CONFIGURE_ARGS+= --without-gnu-ld --with-ld=/usr/ccs/bin/ld |
126 | . endif | | 126 | . endif |
127 | . if exists(/usr/sfw/bin/gas) | | 127 | . if exists(/usr/sfw/bin/gas) |
128 | CONFIGURE_ARGS+= --with-gnu-as --with-as=/usr/sfw/bin/gas | | 128 | CONFIGURE_ARGS+= --with-gnu-as --with-as=/usr/sfw/bin/gas |
129 | . elif exists(/usr/ccs/bin/as) | | 129 | . elif exists(/usr/ccs/bin/as) |
130 | CONFIGURE_ARGS+= --without-gnu-as --with-as=/usr/ccs/bin/as | | 130 | CONFIGURE_ARGS+= --without-gnu-as --with-as=/usr/ccs/bin/as |
131 | . else | | 131 | . else |
132 | BUILDLINK_DEPMETHOD.binutils= full | | 132 | BUILDLINK_DEPMETHOD.binutils= full |
133 | . include "../../devel/binutils/buildlink3.mk" | | 133 | . include "../../devel/binutils/buildlink3.mk" |
134 | CONFIGURE_ARGS+= --with-gnu-as --with-as=${PREFIX}/bin/gas | | 134 | CONFIGURE_ARGS+= --with-gnu-as --with-as=${PREFIX}/bin/gas |
135 | . endif | | 135 | . endif |
| | | 136 | .else # Solaris 10 |
| | | 137 | . if exists(/usr/sfw/bin/gobjdump) |
| | | 138 | CONFIGURE_ENV+= OBJDUMP=/usr/sfw/bin/gobjdump |
| | | 139 | . endif |
| | | 140 | BUILDLINK_API_DEPENDS.binutils+= binutils>=2.23 |
| | | 141 | BUILDLINK_DEPMETHOD.binutils= full |
| | | 142 | . include "../../devel/binutils/buildlink3.mk" |
| | | 143 | CONFIGURE_ENV+= OBJCOPY=${PREFIX}/bin/gobjcopy |
| | | 144 | CONFIGURE_ARGS+= --with-gnu-as --with-as=${PREFIX}/bin/gas |
| | | 145 | CONFIGURE_ARGS+= --without-gnu-ld --with-ld=/usr/ccs/bin/ld |
136 | .endif | | 146 | .endif |
137 | | | 147 | |
138 | pre-configure: | | 148 | pre-configure: |
139 | ${RUN} cd ${WRKSRC} && ${MKDIR} ${OBJDIR} | | 149 | ${RUN} cd ${WRKSRC} && ${MKDIR} ${OBJDIR} |
140 | | | 150 | |
141 | TEST_TARGET= -k check || ${TRUE} | | 151 | TEST_TARGET= -k check || ${TRUE} |
142 | pre-test: | | 152 | pre-test: |
143 | ${RUN} \ | | 153 | ${RUN} \ |
144 | if runtest --version >/dev/null 2>/dev/null ; then \ | | 154 | if runtest --version >/dev/null 2>/dev/null ; then \ |
145 | : ; \ | | 155 | : ; \ |
146 | else \ | | 156 | else \ |
147 | ${ECHO} "ERROR: Please install devel/dejagnu in order to run the test suite." ; \ | | 157 | ${ECHO} "ERROR: Please install devel/dejagnu in order to run the test suite." ; \ |
148 | exit 1 ; \ | | 158 | exit 1 ; \ |