pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/gcc3 Apparently, IRIX can do --enable-shared. Ho...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ac801fb4f8ca
branches:  trunk
changeset: 475465:ac801fb4f8ca
user:      jschauma <jschauma%pkgsrc.org@localhost>
date:      Sun May 16 03:16:42 2004 +0000

description:
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:

 lang/gcc3/Makefile.common |  14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diffs (33 lines):

diff -r 24afd26410b4 -r ac801fb4f8ca lang/gcc3/Makefile.common
--- a/lang/gcc3/Makefile.common Sun May 16 02:21:20 2004 +0000
+++ b/lang/gcc3/Makefile.common Sun May 16 03:16:42 2004 +0000
@@ -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 @@
 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}
 



Home | Main Index | Thread Index | Old Index