summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authordrochner <drochner>2003-07-02 19:34:22 +0000
committerdrochner <drochner>2003-07-02 19:34:22 +0000
commitd81da65410d422473f41a510707eabb0a5a367b0 (patch)
tree3521830a9c36abfb9fa15cde6e8ec1fe6a6fed1a /lang
parent4f34c9651a38fffb79976bbcc83f04a5fbad09b1 (diff)
downloadpkgsrc-d81da65410d422473f41a510707eabb0a5a367b0.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')
-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