From 9662c963a2b3b13364ec275ac6bc7ab83b2a14a8 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Fri, 23 Aug 2019 20:33:18 +0200 Subject: [PATCH] acinclude.m4: add mbedtls to LIBS (#371) Notes: 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 [Retrieved from: https://git.buildroot.net/buildroot/tree/package/libssh2/0002-acinclude.m4-add-mbedtls-to-LIBS.patch] Signed-off-by: Fabrice Fontaine Credit: Fabrice Fontaine --- acinclude.m4 | 1 + 1 file changed, 1 insertion(+) diff --git a/acinclude.m4 b/acinclude.m4 index a0044fc4..2066f0ec 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 ])