On Windows, link libraries (like -lpthread) statically so that the resulting executable does not require any DLLs at runtime. This is necessary on Windows due to a dependency on libwinpthread-1.dll that results in the compiled executable when linking dynamically. Linking statically avoids having to ship libwinpthread-1.dll and is generally preferable unless we have a good reason to link dynamically.
On Windows, link libraries (like
-lpthread
) statically so that the resulting executable does not require any DLLs at runtime. This is necessary on Windows due to a dependency onlibwinpthread-1.dll
that results in the compiled executable when linking dynamically. Linking statically avoids having to shiplibwinpthread-1.dll
and is generally preferable unless we have a good reason to link dynamically.Fixes #133