This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

(2.9.8pre1) --enable-threads=pthreads/glibc 2.1.2: Is this right?


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>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]