From: H.J. Lu Date: Thu, 5 Mar 1998 23:09:12 +0000 (+0000) Subject: stl_config.h (__STL_PTHREADS): Don't define for glibc 2 if _G_USING_THUNKS is not... X-Git-Tag: prereleases/egcs-1.0.2-980309-prerelease~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83ad9cfa811c527a95647864c939a53ce04fb87c;p=thirdparty%2Fgcc.git stl_config.h (__STL_PTHREADS): Don't define for glibc 2 if _G_USING_THUNKS is not defined. * stl_config.h (__STL_PTHREADS): Don't define for glibc 2 if _G_USING_THUNKS is not defined. From-SVN: r18422 --- diff --git a/libstdc++/stl/ChangeLog b/libstdc++/stl/ChangeLog index b3aa0987f8de..8a696b462213 100644 --- a/libstdc++/stl/ChangeLog +++ b/libstdc++/stl/ChangeLog @@ -1,3 +1,8 @@ +Fri Mar 6 00:12:28 1998 H.J. Lu (hjl@gnu.org) + + * stl_config.h (__STL_PTHREADS): Don't define for glibc 2 if + _G_USING_THUNKS is not defined. + 1998-02-25 Jason Merrill * stl_config.h: Work around glibc pthread.h bug. diff --git a/libstdc++/stl/stl_config.h b/libstdc++/stl/stl_config.h index 06d1cd139298..84699d06d61b 100644 --- a/libstdc++/stl/stl_config.h +++ b/libstdc++/stl/stl_config.h @@ -114,7 +114,9 @@ # define __STL_EXPLICIT_FUNCTION_TMPL_ARGS # define __STL_MEMBER_TEMPLATES # endif -# if !defined(_NOTHREADS) && __GLIBC__ >= 2 + /* glibc pre 2.0 is very buggy. We have to disable thread for it. + It should be upgraded to glibc 2.0 or later. */ +# if !defined(_NOTHREADS) && __GLIBC__ >= 2 && defined(_G_USING_THUNKS) # define __STL_PTHREADS # ifdef __STRICT_ANSI__ /* Work around a bug in the glibc pthread.h. */