1 From f4846473f0f0ec313f8ed7ff4cd9f59c1741465d Mon Sep 17 00:00:00 2001
2 From: Baruch Siach <baruch@tkos.co.il>
3 Date: Tue, 20 Mar 2018 20:21:53 +0200
4 Subject: [PATCH] acinclude.m4: add mbedtls to LIBS
6 This is useful for static builds so that the Libs.private field in
7 libssh2.pc contains correct info for the benefit of pkg-config users.
8 Static link with libssh2 requires this information.
10 Signed-off-by: Baruch Siach <baruch@tkos.co.il>
12 Upstream status: https://github.com/libssh2/libssh2/pull/242
15 1 file changed, 1 insertion(+)
17 diff --git a/acinclude.m4 b/acinclude.m4
18 index c0e89a1a0c98..02c70845d27c 100644
21 @@ -441,6 +441,7 @@ m4_case([$1],
23 LIBSSH2_LIB_HAVE_LINKFLAGS([mbedcrypto], [], [#include <mbedtls/version.h>], [
24 AC_DEFINE(LIBSSH2_MBEDTLS, 1, [Use $1])
25 + LIBS="$LIBS $LIBMBEDCRYPTO"
27 support_clear_memory=yes