diff options
author | drochner <drochner> | 2004-07-09 19:25:12 +0000 |
---|---|---|
committer | drochner <drochner> | 2004-07-09 19:25:12 +0000 |
commit | f59206a888719dd8215f3cab4d5149b2c1216302 (patch) | |
tree | ebe6821a1afbd757d2131d4ddbb01918a032ea10 /lang/gcc34 | |
parent | c78b4baa5c282c3d24a838d23c00816caa1bd4d4 (diff) | |
download | pkgsrc-f59206a888719dd8215f3cab4d5149b2c1216302.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/Makefile | 12 |
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: |