diff options
author | Gonzalo Exequiel Pedone | 2024-01-16 23:03:28 -0300 |
---|---|---|
committer | Gonzalo Exequiel Pedone | 2024-01-16 23:03:28 -0300 |
commit | 662f619c4a21a13d6ae9f50f7ebcd452f9a0fd29 (patch) | |
tree | f2d5a5036b24658ba732ca895838a0aa0d1f2fcd /0001-Fix-static-lib.patch | |
parent | 889caa573a2417fe2c8671949dcbcba2d035792b (diff) | |
download | aur-662f619c4a21a13d6ae9f50f7ebcd452f9a0fd29.tar.gz |
Fixed compile error.
Diffstat (limited to '0001-Fix-static-lib.patch')
-rw-r--r-- | 0001-Fix-static-lib.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/0001-Fix-static-lib.patch b/0001-Fix-static-lib.patch new file mode 100644 index 000000000000..adf0f1d67ed0 --- /dev/null +++ b/0001-Fix-static-lib.patch @@ -0,0 +1,14 @@ +diff -ruN libssh-0.9.2/src/CMakeLists.txt patched/src/CMakeLists.txt +--- a/src/CMakeLists.txt 2019-11-07 16:14:46.000000000 +0100 ++++ b/src/CMakeLists.txt 2019-12-05 17:35:42.941031097 +0100 +@@ -324,6 +324,10 @@ + + add_library(ssh::ssh ALIAS ssh) + ++if (WIN32 AND NOT BUILD_SHARED_LIBS) ++ set_target_properties(ssh PROPERTIES COMPILE_FLAGS "-DLIBSSH_STATIC") ++endif () ++ + if (WITH_SYMBOL_VERSIONING AND HAVE_LD_VERSION_SCRIPT) + if (ABIMAP_FOUND) + # Change path to devel map file |