summaryrefslogtreecommitdiff
path: root/lang/gcc3
diff options
context:
space:
mode:
authorjschauma <jschauma>2004-05-16 03:16:42 +0000
committerjschauma <jschauma>2004-05-16 03:16:42 +0000
commit6059d49a66a3da2ba0b227056f6369a9e824592a (patch)
treeeea74c89f255f81eac8bb0b4541696ed71e87365 /lang/gcc3
parent5574d738014c2d6ff4e4a28ef8605c5af69c7a91 (diff)
downloadpkgsrc-6059d49a66a3da2ba0b227056f6369a9e824592a.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/gcc3')
-rw-r--r--lang/gcc3/Makefile.common14
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}