Avoid dynamic linking against libwinpthread when using POSIX-threads MinGW

parent f04e925f
Pipeline #1361 passed with stages
in 67 minutes and 35 seconds