diff --git a/plugins/builtin/CMakeLists.txt b/plugins/builtin/CMakeLists.txt index 71199cc17..23fce8bf6 100644 --- a/plugins/builtin/CMakeLists.txt +++ b/plugins/builtin/CMakeLists.txt @@ -29,7 +29,7 @@ set(CMAKE_CXX_STANDARD 20) set(CMAKE_SHARED_LIBRARY_PREFIX "plugin") if (WIN32) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libstdc++ -static-libgcc -Wl,--allow-multiple-definition -Wl,-Bstatic,--whole-archive -lwinpthread -Wl,--no-whole-archive") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libstdc++ -static-libgcc -Wl,--allow-multiple-definition") endif() if (NOT TARGET libimhex) diff --git a/plugins/example/CMakeLists.txt b/plugins/example/CMakeLists.txt index b67605242..7a25c31f6 100644 --- a/plugins/example/CMakeLists.txt +++ b/plugins/example/CMakeLists.txt @@ -21,7 +21,7 @@ set(CMAKE_CXX_STANDARD 20) set(CMAKE_SHARED_LIBRARY_PREFIX "plugin") if (WIN32) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libstdc++ -static-libgcc -Wl,--allow-multiple-definition -Wl,-Bstatic,--whole-archive -lwinpthread -Wl,--no-whole-archive") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libstdc++ -static-libgcc -Wl,--allow-multiple-definition") endif() if (NOT TARGET libimhex)