summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <404610+tatsuhiro-t@users.noreply.github.com>2023-09-15 22:00:36 +0900
committerGitHub <noreply@github.com>2023-09-15 22:00:36 +0900
commit385ad3a04cb0ede7eb634d06120c3bbdda24f571 (patch)
treeccf93578b20a46dfa6ca455f2c20d5e1e9881930
parent13c893b34a0ee329887f8621729b86c679d4da81 (diff)
parentae5e5fdf7385164b850bed3ce5237909b6d1f5fd (diff)
Merge pull request #2088 from aria2/fix-libssh2-static-link
Fix static link failure against libssh2
-rw-r--r--configure.ac4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 10acaba0..485fe82e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -489,6 +489,10 @@ if test "x$with_libssh2" = "xyes"; then
PKG_CHECK_MODULES([LIBSSH2], [libssh2], [have_libssh2=yes], [have_libssh2=no])
if test "x$have_libssh2" = "xyes"; then
AC_DEFINE([HAVE_LIBSSH2], [1], [Define to 1 if you have libssh2.])
+
+ if test "x$ARIA2_STATIC" = "xyes"; then
+ LIBSSH2_CFLAGS="-DLIBSSH2_API= $LIBSSH2_CFLAGS"
+ fi
else
AC_MSG_WARN([$LIBSSH2_PKG_ERRORS])
if test "x$with_libssh2_requested" = "xyes"; then