diff options
author | jschauma <jschauma@pkgsrc.org> | 2004-05-16 03:16:42 +0000 |
---|---|---|
committer | jschauma <jschauma@pkgsrc.org> | 2004-05-16 03:16:42 +0000 |
commit | 3e6ec66a6a6e12b4829f4c751e33c3ee8c8d99ec (patch) | |
tree | eea74c89f255f81eac8bb0b4541696ed71e87365 /lang | |
parent | e064a18fc59376fc4fd4c00ebb8fe7562e48cc63 (diff) | |
download | pkgsrc-3e6ec66a6a6e12b4829f4c751e33c3ee8c8d99ec.tar.gz |
Apparently, IRIX can do --enable-shared. However, regardless of what
IRIX system we are on, gcc can NOT be compiled (bootstrapped) as a
64bit binary. Fortunately, IRIX64 can handle 32bit binaries, so that we
can force use of 32bit when using MIPSPro.
This allows gcc3-c to build fine under IRIX and IRIX64.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/gcc3/Makefile.common | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lang/gcc3/Makefile.common b/lang/gcc3/Makefile.common index 3020f7adc14..f5711896d4b 100644 --- a/lang/gcc3/Makefile.common +++ b/lang/gcc3/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.4 2004/05/07 15:25:13 cjep Exp $ +# $NetBSD: Makefile.common,v 1.5 2004/05/16 03:16:42 jschauma Exp $ GCC_VERSION= 3.3.3 DISTNAME= gcc-${GCC_VERSION} @@ -91,12 +91,22 @@ BINUTILS_PREFIX_DEFAULT= ${LOCALBASE} CONFIGURE_ARGS+= --with-as=${BINUTILS_PREFIX}/${MACHINE_GNU_PLATFORM}/bin/as .endif -.if ${OPSYS} == "NetBSD" || ${OPSYS} == "Linux" || ${OPSYS} == "SunOS" +.if ${OPSYS} == "NetBSD" || ${OPSYS} == "Linux" || ${OPSYS} == "SunOS" || \ + ${OPSYS} == "IRIX" CONFIGURE_ARGS+= --enable-shared .else CONFIGURE_ARGS+= --disable-shared .endif +.include "../../mk/compiler.mk" + +.if ${OPSYS} == "IRIX" +. if !empty(PKGSRC_COMPILER:Mmipspro*) +CONFIGURE_ENV+= SGI_ABI="n32" +MAKE_ENV+= SGI_ABI="n32" +. endif +.endif + GCC_ARCHSUBDIR= ${GCC_SUBPREFIX}/lib/gcc-lib/${GCC_PLATFORM}/${GCC_VERSION} GCC_ARCHDIR= ${PREFIX}/${GCC_ARCHSUBDIR} |