0002-acinclude.m4-add-mbedtls-to-LIBS.patch 955 B

12345678910111213141516171819202122232425262728293031
  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. This is useful for static builds so that the Libs.private field in
  6. libssh2.pc contains correct info for the benefit of pkg-config users.
  7. Static link with libssh2 requires this information.
  8. Signed-off-by: Baruch Siach <baruch@tkos.co.il>
  9. ---
  10. Upstream status: https://github.com/libssh2/libssh2/pull/242
  11. acinclude.m4 | 1 +
  12. 1 file changed, 1 insertion(+)
  13. diff --git a/acinclude.m4 b/acinclude.m4
  14. index c0e89a1a0c98..02c70845d27c 100644
  15. --- a/acinclude.m4
  16. +++ b/acinclude.m4
  17. @@ -441,6 +441,7 @@ m4_case([$1],
  18. [mbedtls], [
  19. LIBSSH2_LIB_HAVE_LINKFLAGS([mbedcrypto], [], [#include <mbedtls/version.h>], [
  20. AC_DEFINE(LIBSSH2_MBEDTLS, 1, [Use $1])
  21. + LIBS="$LIBS $LIBMBEDCRYPTO"
  22. found_crypto="$1"
  23. support_clear_memory=yes
  24. ])
  25. --
  26. 2.16.2