This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


>>>>> "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.

Tom


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