libcurl: fix build with ssh2 and static mbedtls
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Mon, 21 May 2018 11:41:08 +0000 (13:41 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 27 May 2018 21:42:10 +0000 (23:42 +0200)
commit624603328ab3280374e88eb7d45806d24e933943
treed36d1c6eb28e61c2ef05342875ac76b50073fc81
parent0965080fbcaf9e3f168a799cce0eefbc76c8e5a5
libcurl: fix build with ssh2 and static mbedtls

The ssh2 pkg-config file could contain the following lines when build
with a static version of mbedtls:
   Libs: -L${libdir} -lssh2 /xxx/libmbedcrypto.a
   Libs.private: /xxx/libmbedcrypto.a

This static mbedtls library must be used to correctly detect ssh2
support and this library must be copied in libcurl.pc otherwise
compilation of any application (such as upmpdcli) with libcurl will fail
when trying to find mbedtls functions included in libssh2.

So, replace pkg-config --libs-only-l by pkg-config --libs.

Fixes:
 - http://autobuild.buildroot.net/results/43e24b22a77f616d6198c10435dcc23cc3b9088a

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/libcurl/0001-Fix-link-with-ssh2-built-with-a-static-mbedtls.patch [new file with mode: 0644]
package/libcurl/libcurl.mk