summaryrefslogtreecommitdiff
path: root/lang/gcc34
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2004-07-09 19:25:12 +0000
committerdrochner <drochner@pkgsrc.org>2004-07-09 19:25:12 +0000
commit64082968740fc48544708d1a90d93c72901f362a (patch)
treeebe6821a1afbd757d2131d4ddbb01918a032ea10 /lang/gcc34
parent9a99283870dc5e22567cd9e093d3be565dbb50be (diff)
downloadpkgsrc-64082968740fc48544708d1a90d93c72901f362a.tar.gz
make this usable on 1.6.x, w/o native threads:
-disable thread support if no native threads are available -require native threads only if ADA is built
Diffstat (limited to 'lang/gcc34')
-rw-r--r--lang/gcc34/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/lang/gcc34/Makefile b/lang/gcc34/Makefile
index ec0c74c63b3..cc4fbcbd870 100644
--- a/lang/gcc34/Makefile
+++ b/lang/gcc34/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2004/06/29 18:01:24 shannonjr Exp $
+# $NetBSD: Makefile,v 1.2 2004/07/09 19:25:12 drochner Exp $
#
DISTNAME= gcc-${GCC_VERSION}-${GCC_VERSION_DATE}
@@ -52,6 +52,11 @@ CONFIGURE_ARGS+= --enable-nls
CONFIGURE_ARGS+= --without-included-gettext
CONFIGURE_ARGS+= --enable-long-long
CONFIGURE_ARGS+= --enable-clocale=generic
+# GNU pth is useless here
+PTHREAD_OPTS= native
+.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} != "native"
+CONFIGURE_ARGS+= --disable-threads
+.endif
USE_BUILDLINK3= YES
USE_PKGINSTALL= YES
@@ -59,10 +64,13 @@ USE_GNU_TOOLS+= make
HAS_CONFIGURE= YES
USE_MAKEINFO= YES
USE_NEW_TEXINFO= YES
-PTHREAD_OPTS+= require native
PLIST_SRC= ${WRKDIR}/PLIST_DYNAMIC
.if !empty(BUILD_ADA:M[Yy][Ee][Ss])
+
+# ADA tasking strictly requires native threads
+PTHREAD_OPTS= require native
+
# Ada bootstrap compiler section
# An Ada compiler is required to build the Ada compiler. Two
may be used: