On Tue, 27 Aug 2019, Kacvinsky, Tom wrote:

Hi all,

I have had great success with the UCRT support I need for the project I am 
working on.
But today I found out I also need winpthread support, which is currently not in 
the kit
(gcc-8.3.0 based) I built.

I still have the script I used to bootstrap gcc-8.3.0 and associated runtimes 
that are UCRT
based, I would just need to add in support for building winpthreads.  Any ideas 
on how to
best approach this?

If you just need winpthreads for direct use by some other code you're building, you should be able to check out the mingw-w64 repo, enter the mingw-w64-libraries/winpthreads directory, and build it (./configure --prefix=<your_x86_64-w64-mingw32-directory>; make; make install).

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

// Martin



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

Reply via email to