pineapple-src/externals/vcpkg/ports/libssh/0002-mingw_for_Android.patch

14 lines
465 B
Diff
Raw Normal View History

2022-07-23 03:01:36 +02:00
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 ()