diff options
author | abs <abs@pkgsrc.org> | 2003-06-30 22:40:07 +0000 |
---|---|---|
committer | abs <abs@pkgsrc.org> | 2003-06-30 22:40:07 +0000 |
commit | d53f7c956148ef77d37cf3236db70a85dcde6856 (patch) | |
tree | ee823a5b39879bf59d57d1b79a9bdb45fb0b56af /lang/gcc3/Makefile | |
parent | d6fc5aa1e391d4929b048002ee970beffe80b65c (diff) | |
download | pkgsrc-d53f7c956148ef77d37cf3236db70a85dcde6856.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/Makefile')
-rw-r--r-- | lang/gcc3/Makefile | 12 |
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} '{ \ |