aboutsummaryrefslogtreecommitdiff
path: root/ports/libssh
diff options
context:
space:
mode:
Diffstat (limited to 'ports/libssh')
-rw-r--r--ports/libssh/0002-mingw_for_Android.patch12
-rw-r--r--ports/libssh/CONTROL2
-rw-r--r--ports/libssh/portfile.cmake1
3 files changed, 14 insertions, 1 deletions
diff --git a/ports/libssh/0002-mingw_for_Android.patch b/ports/libssh/0002-mingw_for_Android.patch
new file mode 100644
index 000000000..e0e3472b1
--- /dev/null
+++ b/ports/libssh/0002-mingw_for_Android.patch
@@ -0,0 +1,12 @@
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+--- a/src/CMakeLists.txt (revision 0cceefd49d4d397eb21bd36e314ac87739da51ff)
++++ b/src/CMakeLists.txt (date 1617870624653)
+@@ -361,7 +361,7 @@
+ set_target_properties(ssh PROPERTIES COMPILE_FLAGS "-fvisibility=hidden")
+ endif (WITH_VISIBILITY_HIDDEN)
+
+-if (MINGW)
++if (MINGW AND NOT ANDROID)
+ set_target_properties(ssh PROPERTIES LINK_FLAGS "-Wl,--enable-stdcall-fixup")
+ set_target_properties(ssh PROPERTIES COMPILE_FLAGS "-D_POSIX_SOURCE")
+ endif ()
diff --git a/ports/libssh/CONTROL b/ports/libssh/CONTROL
index 0a138fcd9..975903356 100644
--- a/ports/libssh/CONTROL
+++ b/ports/libssh/CONTROL
@@ -1,6 +1,6 @@
Source: libssh
Version: 0.9.5
-Port-Version: 2
+Port-Version: 3
Homepage: https://www.libssh.org/
Build-Depends: libssh[core,mbedtls] (android)
Description: libssh is a multiplatform C library implementing the SSHv2 protocol on client and server side
diff --git a/ports/libssh/portfile.cmake b/ports/libssh/portfile.cmake
index a35ee1162..cbacd542b 100644
--- a/ports/libssh/portfile.cmake
+++ b/ports/libssh/portfile.cmake
@@ -7,6 +7,7 @@ vcpkg_from_git(
SHA512 64e692a0bfa7f73585ea7b7b8b1d4c9a7f9be59565bfd4de32ca8cd9db121f87e7ad51f5c80269fbd99545af34dcf1894374ed8a6d6c1ac5f8601c026572ac18
PATCHES
0001-export-pkgconfig-file.patch
+ 0002-mingw_for_Android.patch
)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS