在 2019/8/28 3:52, Martin Storsjö 写道:
> 
> If you need to have libstdc++ use this for its threading functions,
> you'd need to rebuild the toolchain, building this after the
> mingw-w64-crt parts but before building the rest of the gcc runtimes,
> and possibly change some configure flag to gcc to make it use
> winpthreads (I don't know offhand what flag that is).
> 

In reality libgcc also depends on the thread library, as C does have a
little construction in the language which is not implementable by the
library. It is `_Thread_local` in C11 which is equivalent to the
longstanding GCC extension `__thread`.

The configure flag to inform GCC to use winpthreads is
`--enable-threads=posix`.


-- 
Best regards,
LH_Mouse

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to