From f4846473f0f0ec313f8ed7ff4cd9f59c1741465d Mon Sep 17 00:00:00 2001 From: Baruch Siach Date: Tue, 20 Mar 2018 20:21:53 +0200 Subject: [PATCH] acinclude.m4: add mbedtls to LIBS This is useful for static builds so that the Libs.private field in libssh2.pc contains correct info for the benefit of pkg-config users. Static link with libssh2 requires this information. Signed-off-by: Baruch Siach [Fabrice: Replace $LIBMBEDCRYTO by -lmdedcrypto to avoid adding a full library path to libssh2.pc as it raises build failures on some packages such as xerces] Signed-off-by: Fabrice Fontaine --- Upstream status: https://github.com/libssh2/libssh2/pull/242 acinclude.m4 | 1 + 1 file changed, 1 insertion(+) diff --git a/acinclude.m4 b/acinclude.m4 index c0e89a1a0c98..02c70845d27c 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -441,6 +441,7 @@ m4_case([$1], [mbedtls], [ LIBSSH2_LIB_HAVE_LINKFLAGS([mbedcrypto], [], [#include ], [ AC_DEFINE(LIBSSH2_MBEDTLS, 1, [Use $1]) + LIBS="$LIBS -lmbedcrypto" found_crypto="$1" support_clear_memory=yes ]) -- 2.16.2