From cb4225c564fa9c693c1040c8ff7c1d4565c806bd Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Sat, 11 Apr 2026 23:48:11 +0100 Subject: [PATCH] Fix building on Windows. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 28ea6e1..4f462a8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -114,7 +114,7 @@ if("${CMAKE_C_PLATFORM_ID}" MATCHES "MinGW") # Statically link the MinGW/GCC runtime and winpthread so the executable # does not depend on libgcc_s_*.dll or libwinpthread-1.dll at runtime. add_link_options(-static-libgcc -static-libstdc++ - -Wl,-Bstatic,--whole-archive -lwinpthread + -Wl,-Bstatic,--whole-archive -Wl,--no-whole-archive,-Bdynamic) endif()