Signed-off-by: Marc Kleine-Budde <m...@pengutronix.de>
---
 rules/libcurl.make | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/rules/libcurl.make b/rules/libcurl.make
index 0d0ac9ea33d0..1ddefa9a5b4e 100644
--- a/rules/libcurl.make
+++ b/rules/libcurl.make
@@ -105,7 +105,6 @@ LIBCURL_CONF_OPT    := \
        --without-brotli \
        --without-zstd \
        --without-gssapi \
-       --with-default-ssl-backend=$(PTXCONF_LIBCURL_SSL_DEFAULT_BACKEND) \
        --with-random=/dev/urandom \
        --with-ca-bundle=$(PTXCONF_LIBCURL_SSL_CABUNDLE_PATH) \
        --with-ca-path=$(PTXCONF_LIBCURL_SSL_CAPATH_PATH) \
@@ -126,6 +125,14 @@ LIBCURL_CONF_OPT   := \
        --without-zsh-functions-dir \
        --without-fish-functions-dir
 
+ifdef PTXCONF_LIBCURL_SSL
+LIBCURL_CONF_OPT += \
+       --with-default-ssl-backend=$(PTXCONF_LIBCURL_SSL_DEFAULT_BACKEND)
+else
+LIBCURL_CONF_OPT += \
+       --without-ssl
+endif
+
 # ----------------------------------------------------------------------------
 # Target-Install
 # ----------------------------------------------------------------------------
-- 
2.30.2


Reply via email to