https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67116
Bug ID: 67116 Summary: incorrect detection of thread model when cross-compiling the tool chain Product: gcc Version: 5.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: sliwa at ifpan dot edu.pl Target Milestone: --- The configure script detects the thread model of the CXX compiler. When building the tool chain it is the compiler for the host rather than for the target. These are different when cross-compiling. For example: I am on Linux; I have built a cross compiler to MinGW64 which uses Win32 threads; and I want to use it to cross-compile a native MinGW64 compiler for applications using POSIX threads. I such a situation libstdc++ detects Win32 thread model and builds without thread support.