pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/gcc34 make this usable on 1.6.x, w/o native threads:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/357742f23080
branches:  trunk
changeset: 477814:357742f23080
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Fri Jul 09 19:25:12 2004 +0000

description:
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:

 lang/gcc34/Makefile |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (36 lines):

diff -r 53d8f50ccfbd -r 357742f23080 lang/gcc34/Makefile
--- a/lang/gcc34/Makefile       Fri Jul 09 18:19:09 2004 +0000
+++ b/lang/gcc34/Makefile       Fri Jul 09 19:25:12 2004 +0000
@@ -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+=       --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 @@
 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:



Home | Main Index | Thread Index | Old Index