summaryrefslogtreecommitdiff
path: root/lang/gcc3
diff options
context:
space:
mode:
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}