summaryrefslogtreecommitdiff
path: root/lang/gcc3
diff options
context:
space:
mode:
authorabs <abs>2003-06-30 22:40:07 +0000
committerabs <abs>2003-06-30 22:40:07 +0000
commitfa1acbbedcf708d97d1cfb23d21a778342d8bf0f (patch)
treeee823a5b39879bf59d57d1b79a9bdb45fb0b56af /lang/gcc3
parent9eb38f0adb70b0ca7beefddd3944298c627af846 (diff)
downloadpkgsrc-fa1acbbedcf708d97d1cfb23d21a778342d8bf0f.tar.gz
Update gcc3 to gcc3-3.3nb2
If NetBSD and /usr/include/pthread.h is present, add --enable-threads to configure arguments. Could set --host=i386--netbsdelf2.0 instead, but that causes many other packages (eg: mail/imap-uw) to fail to link with '/usr/bin/ld: cannot find -lgcc_eh' even when they .if defined(USE_GCC3) . include "../../lang/gcc3/buildlink2.mk" .endif With this change a 1.6U/i386 machine can build mozilla with gcc3.
Diffstat (limited to 'lang/gcc3')
-rw-r--r--lang/gcc3/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/lang/gcc3/Makefile b/lang/gcc3/Makefile
index 1ce4fccfaee..19185001048 100644
--- a/lang/gcc3/Makefile
+++ b/lang/gcc3/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.22 2003/06/17 06:18:28 grant Exp $
+# $NetBSD: Makefile,v 1.23 2003/06/30 22:40:07 abs Exp $
#
DISTNAME= gcc-3.3
-PKGREVISION= 1
+PKGREVISION= 2
PKGNAME= ${DISTNAME:C|gcc|gcc3|}
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-3.3/}
@@ -21,7 +21,7 @@ USE_PKGINSTALL= YES
USE_GMAKE= YES
HAS_CONFIGURE= YES
-CONFIGURE_ARGS= --host=${MACHINE_GNU_PLATFORM}
+
CONFIGURE_ARGS+= --infodir=${PREFIX}/info
CONFIGURE_ARGS+= --prefix=${GCC_PREFIX}
UNLIMIT_RESOURCES= datasize
@@ -35,6 +35,12 @@ TEXINFO_REQD= 4.2
INFO_FILES= cpp.info g77.info gcc.info gcj.info
.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} == "NetBSD" && exists(/usr/include/pthread.h)
+# '--host=i386--netbsdelf2.0' causes ".../ld: cannot find -lgcc_eh"
+CONFIGURE_ARGS+= --host=${MACHINE_GNU_PLATFORM} --enable-threads
+.else
+CONFIGURE_ARGS+= --host=${MACHINE_GNU_PLATFORM}
+.endif
.if ${OPSYS} == "NetBSD" && !defined(USE_BINUTILS)
AS_VERSION!= ${AS} --version | ${AWK} '{ \