This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
(2.9.8pre1) --enable-threads=pthreads/glibc 2.1.2: Is this right?
- To: libstdc++ at sourceware dot cygnus dot com
- Subject: (2.9.8pre1) --enable-threads=pthreads/glibc 2.1.2: Is this right?
- From: "George T. Talbot" <george at moberg dot com>
- Date: Tue, 14 Mar 2000 13:44:27 -0500
- Organization: Moberg Research, Inc.
Discovered this by accident. On line 268 of stl_config.h, we've got this:
/* glibc pre 2.0 is very buggy. We have to disable threads for it.
It should be upgraded to glibc 2.0 or later. */
# if !defined(_NOTHREADS) && __GLIBC__ >= 2 && defined(_G_USING_THUNKS)
# define __STL_THREADS
# define _PTHREADS
# define __STL_PTHREADS
# ifdef __STRICT_ANSI__
/* Work around a bug in the glibc 2.0.x pthread.h. */
# define sigset_t __sigset_t
# endif
# endif
I'm confused by the comment. I've compiled libstdc++ with gcc 2.95.1, and am
running with glibc 2.1.2. I set the --enable-threads=pthreads when I
compiled. When compiling a program, _PTHREADS is getting defined at the line
above.
I think this is correct, but, as I said, I'm confused by the comment.
--
George T. Talbot
<george@moberg.com>