aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2015-05-05 18:59:30 +0200
committerAndreas Schneider <asn@cryptomilk.org>2015-05-05 18:59:30 +0200
commite8720a30e257578f8a954b7f99ef028240644ca2 (patch)
treecff484d75ebe9e096204fe4635c0d9256ddc085a
parentad09009201f5abc185f853b6db6d8747ce52a1d7 (diff)
downloadlibssh-e8720a30e257578f8a954b7f99ef028240644ca2.tar.gz
libssh-e8720a30e257578f8a954b7f99ef028240644ca2.tar.xz
libssh-e8720a30e257578f8a954b7f99ef028240644ca2.zip
cmake: Add --enable-stdcall-fixup for MinGW builds
This fixes warnings for getaddrinfo() and freeaddrinfo(). Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--src/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 1eb6764c..5fd042db 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -246,6 +246,10 @@ if (WITH_VISIBILITY_HIDDEN)
set_target_properties(${LIBSSH_SHARED_LIBRARY} PROPERTIES COMPILE_FLAGS "-fvisibility=hidden")
endif (WITH_VISIBILITY_HIDDEN)
+if (MINGW)
+ set_target_properties(${LIBSSH_SHARED_LIBRARY} PROPERTIES LINK_FLAGS "-Wl,--enable-stdcall-fixup")
+endif ()
+
install(
TARGETS