vcpkg/ports/libssh/0002-mingw_for_Android.patch
JonLiu1993 ee0584f050
[libssh/libressl] update to the latest version (#20067)
* [libssh/libssh2/libssh2] update to the latest version

* update version

* update patches formating

* update version

* update hash512

* update version'

* fix CI build error

* update version

* update vcpkg.json and portifile.cmake

* update version

* delete hash

* update version

* revert libssh2

* update version

* revert libssh2

* update portfile.cmake

* update version
2021-09-27 17:26:06 -07:00

14 lines
465 B
Diff

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index a576cf7..1f6a048 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -359,7 +359,7 @@ if (WITH_VISIBILITY_HIDDEN)
set_target_properties(ssh PROPERTIES C_VISIBILITY_PRESET hidden)
endif (WITH_VISIBILITY_HIDDEN)
-if (MINGW)
+if (MINGW AND NOT ANDROID)
target_link_libraries(ssh PRIVATE "-Wl,--enable-stdcall-fixup")
target_compile_definitions(ssh PRIVATE "_POSIX_SOURCE")
endif ()