Patchwork [v3,2/2] libcurl: add support for compiling with libssh2

login
register
mail settings
Submitter Ryan Barnett
Date Aug. 30, 2013, 2:09 p.m.
Message ID <1377871785-4964-3-git-send-email-rjbarnet@rockwellcollins.com>
Download mbox | patch
Permalink /patch/271298/
State Accepted
Headers show

Comments

Ryan Barnett - Aug. 30, 2013, 2:09 p.m.
Adding configuration options that if libssh2 is selected, compile libcurl
with --with-ssh config flag.

Signed-off-by: Ryan Barnett <rjbarnet@rockwellcollins.com>
---
 package/libcurl/libcurl.mk |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
Peter Korsgaard - Sept. 8, 2013, 7:53 p.m.
>>>>> "Ryan" == Ryan Barnett <rjbarnet@rockwellcollins.com> writes:

 Ryan> Adding configuration options that if libssh2 is selected, compile libcurl
 Ryan> with --with-ssh config flag.

Committed, thanks.

Patch

diff --git a/package/libcurl/libcurl.mk b/package/libcurl/libcurl.mk
index 56f13ba..fd15478 100644
--- a/package/libcurl/libcurl.mk
+++ b/package/libcurl/libcurl.mk
@@ -34,6 +34,14 @@  else
 LIBCURL_CONF_OPT += --without-ssl
 endif
 
+# Configure curl to support libssh2
+ifeq ($(BR2_PACKAGE_LIBSSH2),y)
+LIBCURL_DEPENDENCIES += libssh2
+LIBCURL_CONF_OPT += --with-libssh2
+else
+LIBCURL_CONF_OPT += --without-libssh2
+endif
+
 define LIBCURL_FIX_DOT_PC
 	printf 'Requires: openssl\n' >>$(@D)/libcurl.pc.in
 endef