diff options
author | Gonzalo Exequiel Pedone | 2024-01-16 23:03:48 -0300 |
---|---|---|
committer | Gonzalo Exequiel Pedone | 2024-01-16 23:03:48 -0300 |
commit | 6d05fc5fe93a7ae8a03f7f59c5dff765f855c9e2 (patch) | |
tree | a0f467225e679870772fbb88a860e16a71f5319b /0001-Fix-static-lib.patch | |
parent | 658a0069edc6917879ad7f0678a5e79330ba5be6 (diff) | |
download | aur-6d05fc5fe93a7ae8a03f7f59c5dff765f855c9e2.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 |