From ae5e5fdf7385164b850bed3ce5237909b6d1f5fd Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 15 Sep 2023 21:39:33 +0900 Subject: [PATCH] Fix static link failure against libssh2 --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) 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