On 1/29/25 9:58 PM, Kirill Makurin wrote:
Hi,
I was writing to the list a few months ago regarding building of winpthreads
with MSVC tools. I also sent a few patches back then, none of which were
pushed. The first two patches were fixing a syntax error in `src/thread.h` and
linking of `tests/t_nanosleep.c`. Other patches tried to fix issues with
`pthread[.dll].lib` alias.
I think first two patches can be safely pushed. I regenerated (with `git
format-patch`, I hope this is fine) and attached them.
This still does not fix issues with the alias (which makes `make` fail). I took
a look at winpthreads' `configure.ac` and `Makefile.am`, and they seem to be
quite simple. I wrote a `meson.build` for it and I wonder if the project would
be interested in this contribution. Besides handling of `cl.exe` it also
handles more unusual compilers like `clang-cl.exe`. Having `meson.build` for
winpthreads will allow to use it as a subproject, which will allow projects to
use POSIX threads even when building with MSVC.
- Kirill Makurin
Can you attach the patches with .txt extension? Sourceforge blocked
them. We strictly require the use of autotools for consistency with the
rest of the project and avoid having build systems becoming out of sync.
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public