|
@@ -19,7 +19,8 @@ LIBCURL_INSTALL_STAGING = YES
|
|
|
# probably almost never used. See
|
|
|
# http://curl.haxx.se/docs/manpage.html#--ntlm.
|
|
|
LIBCURL_CONF_OPTS = --disable-manual --disable-ntlm-wb \
|
|
|
- --enable-hidden-symbols --with-random=/dev/urandom --disable-curldebug
|
|
|
+ --enable-hidden-symbols --with-random=/dev/urandom --disable-curldebug \
|
|
|
+ --without-polarssl
|
|
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
|
|
LIBCURL_CONF_OPTS += --enable-threaded-resolver
|
|
@@ -35,7 +36,7 @@ endif
|
|
|
|
|
|
LIBCURL_CONFIG_SCRIPTS = curl-config
|
|
|
|
|
|
-ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
+ifeq ($(BR2_PACKAGE_LIBCURL_OPENSSL),y)
|
|
|
LIBCURL_DEPENDENCIES += openssl
|
|
|
# configure adds the cross openssl dir to LD_LIBRARY_PATH which screws up
|
|
|
# native stuff during the rest of configure when target == host.
|
|
@@ -44,19 +45,31 @@ LIBCURL_DEPENDENCIES += openssl
|
|
|
LIBCURL_CONF_ENV += LD_LIBRARY_PATH=$(if $(LD_LIBRARY_PATH),$(LD_LIBRARY_PATH):)/lib:/usr/lib
|
|
|
LIBCURL_CONF_OPTS += --with-ssl=$(STAGING_DIR)/usr \
|
|
|
--with-ca-path=/etc/ssl/certs
|
|
|
-else ifeq ($(BR2_PACKAGE_GNUTLS),y)
|
|
|
-LIBCURL_CONF_OPTS += --with-gnutls=$(STAGING_DIR)/usr
|
|
|
+else
|
|
|
+LIBCURL_CONF_OPTS += -without-ssl
|
|
|
+endif
|
|
|
+
|
|
|
+ifeq ($(BR2_PACKAGE_LIBCURL_GNUTLS),y)
|
|
|
+LIBCURL_CONF_OPTS += --with-gnutls=$(STAGING_DIR)/usr --without-ssl
|
|
|
LIBCURL_DEPENDENCIES += gnutls
|
|
|
-else ifeq ($(BR2_PACKAGE_LIBNSS),y)
|
|
|
-LIBCURL_CONF_OPTS += --with-nss=$(STAGING_DIR)/usr
|
|
|
+else
|
|
|
+LIBCURL_CONF_OPTS += --without-gnutls
|
|
|
+endif
|
|
|
+
|
|
|
+ifeq ($(BR2_PACKAGE_LIBCURL_LIBNSS),y)
|
|
|
+LIBCURL_CONF_OPTS += --with-nss=$(STAGING_DIR)/usr --without-ssl --without-gnutls
|
|
|
LIBCURL_CONF_ENV += CPPFLAGS="$(TARGET_CPPFLAGS) `$(PKG_CONFIG_HOST_BINARY) nspr nss --cflags`"
|
|
|
LIBCURL_DEPENDENCIES += libnss
|
|
|
-else ifeq ($(BR2_PACKAGE_MBEDTLS),y)
|
|
|
-LIBCURL_CONF_OPTS += --with-mbedtls=$(STAGING_DIR)/usr
|
|
|
+else
|
|
|
+LIBCURL_CONF_OPTS += --without-nss
|
|
|
+endif
|
|
|
+
|
|
|
+ifeq ($(BR2_PACKAGE_LIBCURL_MBEDTLS),y)
|
|
|
+LIBCURL_CONF_OPTS += --with-mbedtls=$(STAGING_DIR)/usr \
|
|
|
+ --without-ssl --without-gnutls --without-nss
|
|
|
LIBCURL_DEPENDENCIES += mbedtls
|
|
|
else
|
|
|
-LIBCURL_CONF_OPTS += --without-ssl --without-gnutls \
|
|
|
- --without-polarssl --without-nss --without-mbedtls
|
|
|
+LIBCURL_CONF_OPTS += --without-mbedtls
|
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_C_ARES),y)
|
|
@@ -98,7 +111,7 @@ endif
|
|
|
define LIBCURL_FIX_DOT_PC
|
|
|
printf 'Requires: openssl\n' >>$(@D)/libcurl.pc.in
|
|
|
endef
|
|
|
-LIBCURL_POST_PATCH_HOOKS += $(if $(BR2_PACKAGE_OPENSSL),LIBCURL_FIX_DOT_PC)
|
|
|
+LIBCURL_POST_PATCH_HOOKS += $(if $(BR2_PACKAGE_LIBCURL_OPENSSL),LIBCURL_FIX_DOT_PC)
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_CURL),)
|
|
|
define LIBCURL_TARGET_CLEANUP
|