This is the mail archive of the libstdc++@gcc.gnu.org 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]
Other format: [Raw text]

Re: A difficult question about locale_mutex uninitialized


(on-list reply to off-list followup, author stripped by request)

> [Off list]
> 
> Doesn't the compiler itself also have to be originally built with thread
> support (one of the magic configure flags)?

Yes. Many of the targets for gcc default to thread support, such as
some of the BSD's and linux.

> Hence to see the thread model (g++ -v test.cpp):
> 
> ... yada yada yada ...
> Thread model: posix
> ... yada yada yada ...

Exactly. This is the best way to see if your compiler is configured
correctly.

> So *IF* the compiler (or in this case, the cross-compiler) was built without
> the threading support, *OR* *IF* the libstdc++.a was built without threading
> support... bad things happen.

Yep.

-benjamin


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