From 031bbf7fa1c00a16d7ed1c0c450821b9818b8529 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 28 Dec 2016 01:22:41 +0300 Subject: remove dynamic dependency on libwinpthread-1.dll For some reason, i686-w64-mingw32-g++ 5.4.0 adds a dynamic dependency on libwinpthread-1.dll even when `-static-libgcc -static-libstdc++` is set. --- CMakeLists.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 618dc25..a2838f9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,9 +18,7 @@ function(use_static_runtime target) elseif(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX) get_target_property(type ${target} TYPE) if(type STREQUAL EXECUTABLE) - target_link_libraries(${target} PRIVATE - -static-libgcc - -static-libstdc++) + target_link_libraries(${target} PRIVATE -static) endif() endif() endif() -- cgit v1.2.3