From fa352b6917472f5448f41a4af58c7344ff01d750 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Tue, 2 Feb 2021 00:39:47 +0100 Subject: [PATCH] Fixed linker warnings on plugins --- plugins/builtin/CMakeLists.txt | 2 +- plugins/example/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)