[PATCH] PR bootstrap/9330: -pthread required to include <pthread.h>

Tom Tromey tromey@redhat.com
Tue Jul 1 00:16:00 GMT 2003

>>>>> "Roger" == Roger Sayle <roger@eyesopen.com> writes:

Roger> Finally, the third and final failure was building libjava which
Roger> includes <pthread.h> directly.  Here the fix was to tweak
Roger> configure.in such that in addition to adding -lpthread to
Roger> THREADLIBS when using posix threads, on alpha*-dec-osf5*, we
Roger> also set THREADINCS to "-pthread".  I hope this is a resonable
Roger> location, there didn't appear to be a THREADCFLAGS option.

Yeah, this is reasonable enough.  THREADINCS is currently unused, but
it ends up in INCLUDES, which automake passes to all C and C++
compilations.  So this will wind up doing the right thing.


More information about the Libstdc++ mailing list