Commit d45db956 authored by Ryan Barnett's avatar Ryan Barnett Committed by Peter Korsgaard
Browse files

libcurl: add support for compiling with libssh2



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

Signed-off-by: default avatarRyan Barnett <rjbarnet@rockwellcollins.com>
Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
parent 2ee180e3
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -47,6 +47,14 @@ LIBCURL_CONF_OPT += --without-ssl --without-gnutls \
	--without-polarssl --without-nss
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