summaryrefslogtreecommitdiff
path: root/lang/gcc3
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2003-07-02 19:34:22 +0000
committerdrochner <drochner@pkgsrc.org>2003-07-02 19:34:22 +0000
commitb8458ba8d0af67c0f56170c6d07f5ec2ee2a5560 (patch)
tree3521830a9c36abfb9fa15cde6e8ec1fe6a6fed1a /lang/gcc3
parentcb574feaf04a3052fa2d0ee02060cf6e2073a4ca (diff)
downloadpkgsrc-b8458ba8d0af67c0f56170c6d07f5ec2ee2a5560.tar.gz
The "libgcc_eh not found" was just buildlink lossage, not
gcc3's fault. Worse, programs got built against the wrong (main tree) libgcc. Now that this is fixed, set a netbsdelf2.0 target on -current, to get both thread support and crt*.o files. Also, use the usual buildlink magic to avoid picking up a GNU pth from /usr/pkg. pkgsrc/mail/imap-uw builds with a gcc3 set up this way.
Diffstat (limited to 'lang/gcc3')
-rw-r--r--lang/gcc3/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/lang/gcc3/Makefile b/lang/gcc3/Makefile
index 19185001048..e6c0fee12a8 100644
--- a/lang/gcc3/Makefile
+++ b/lang/gcc3/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23 2003/06/30 22:40:07 abs Exp $
+# $NetBSD: Makefile,v 1.24 2003/07/02 19:34:22 drochner Exp $
#
DISTNAME= gcc-3.3
@@ -36,8 +36,11 @@ 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
+CONFIGURE_ARGS= --host=${MACHINE_GNU_ARCH}--netbsdelf2.0
+PTHREAD_OPTS+= require native
+.include "../../mk/pthread.buildlink2.mk"
+CPPFLAGS+= -I${BUILDLINK_DIR}/include
+CFLAGS+= -I${BUILDLINK_DIR}/include
.else
CONFIGURE_ARGS+= --host=${MACHINE_GNU_PLATFORM}
.endif