aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-12-28 01:22:41 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-12-28 01:22:41 +0300
commit031bbf7fa1c00a16d7ed1c0c450821b9818b8529 (patch)
tree020bb3e4f122fb8184d413bfb7c87f7decfd59b8 /CMakeLists.txt
parentCMakeLists.txt: code style (diff)
downloadaes-tools-031bbf7fa1c00a16d7ed1c0c450821b9818b8529.tar.gz
aes-tools-031bbf7fa1c00a16d7ed1c0c450821b9818b8529.zip
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.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 1 insertions, 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()