]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/libssh2/0002-acinclude.m4-add-mbedtls-to-LIBS.patch
libssh2: fix pkg-config info for mbedtls backend
[coffee/buildroot.git] / package / libssh2 / 0002-acinclude.m4-add-mbedtls-to-LIBS.patch
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
5
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.
9
10 Signed-off-by: Baruch Siach <baruch@tkos.co.il>
11 ---
12 Upstream status: https://github.com/libssh2/libssh2/pull/242
13
14  acinclude.m4 | 1 +
15  1 file changed, 1 insertion(+)
16
17 diff --git a/acinclude.m4 b/acinclude.m4
18 index c0e89a1a0c98..02c70845d27c 100644
19 --- a/acinclude.m4
20 +++ b/acinclude.m4
21 @@ -441,6 +441,7 @@ m4_case([$1],
22  [mbedtls], [
23    LIBSSH2_LIB_HAVE_LINKFLAGS([mbedcrypto], [], [#include <mbedtls/version.h>], [
24      AC_DEFINE(LIBSSH2_MBEDTLS, 1, [Use $1])
25 +    LIBS="$LIBS $LIBMBEDCRYPTO"
26      found_crypto="$1"
27      support_clear_memory=yes
28    ])
29 -- 
30 2.16.2
31