]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
stl_config.h (__STL_PTHREADS): Don't define for glibc 2 if _G_USING_THUNKS is not...
authorH.J. Lu <hjl@gnu.org>
Thu, 5 Mar 1998 23:09:12 +0000 (23:09 +0000)
committerJeff Law <law@gcc.gnu.org>
Thu, 5 Mar 1998 23:09:12 +0000 (16:09 -0700)
        * stl_config.h (__STL_PTHREADS): Don't define for glibc 2 if
        _G_USING_THUNKS is not defined.

From-SVN: r18422

libstdc++/stl/ChangeLog
libstdc++/stl/stl_config.h

index b3aa0987f8de4e96d8f181f625ce33497254865b..8a696b462213d5c3fbae1be9daabe0128a380b0c 100644 (file)
@@ -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  <jason@yorick.cygnus.com>
 
        * stl_config.h: Work around glibc pthread.h bug.
index 06d1cd139298b4db5611898c58a837689d928c08..84699d06d61b161a5852c697f7cd880ae6510363 100644 (file)
 #     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.  */