2
1

0001-Fix-link-with-ssh2-built-with-a-static-mbedtls.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. From b5fbc486e805805efb8400373ccec2a3dee1c81b Mon Sep 17 00:00:00 2001
  2. From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  3. Date: Mon, 21 May 2018 12:07:00 +0200
  4. Subject: [PATCH 1/1] Fix link with ssh2 built with a static mbedtls
  5. The ssh2 pkg-config file could contain the following lines when build
  6. with a static version of mbedtls:
  7. Libs: -L${libdir} -lssh2 /xxx/libmbedcrypto.a
  8. Libs.private: /xxx/libmbedcrypto.a
  9. This static mbedtls library must be used to correctly detect ssh2
  10. support and this library must be copied in libcurl.pc otherwise
  11. compilation of any application (such as upmpdcli) with libcurl will fail
  12. when trying to found mbedtls functions included in libssh2.
  13. So, replace pkg-config --libs-only-l by pkg-config --libs.
  14. Fixes:
  15. - http://autobuild.buildroot.net/results/43e24b22a77f616d6198c10435dcc23cc3b9088a
  16. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  17. ---
  18. configure.ac | 2 +-
  19. 1 file changed, 1 insertion(+), 1 deletion(-)
  20. diff --git a/configure.ac b/configure.ac
  21. index 5569a26b4..9e2606885 100755
  22. --- a/configure.ac
  23. +++ b/configure.ac
  24. @@ -2766,7 +2766,7 @@ if test X"$OPT_LIBSSH2" != Xno; then
  25. CURL_CHECK_PKGCONFIG(libssh2)
  26. if test "$PKGCONFIG" != "no" ; then
  27. - LIB_SSH2=`$PKGCONFIG --libs-only-l libssh2`
  28. + LIB_SSH2=`$PKGCONFIG --libs libssh2`
  29. LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
  30. CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
  31. version=`$PKGCONFIG --modversion libssh2`
  32. --
  33. 2.14.1