[Buildroot] [PATCH v2] package/libcurl: Use certificate bundle conditionally
Ignacy Gawędzki
ignacy.gawedzki at green-communications.fr
Mon Mar 30 18:25:54 UTC 2026
Configure with --with-ca-bundle option only if package ca-certificates
is selected, otherwise curl will fail connecting with HTTPS, since the
specified /etc/ssl/certs/ca-certificates.crt file does not exist.
The use of --with-ca-bundle was introduced by the following commit:
"5a63ee3c09 package/libcurl: also specify the CA bundle location"
Signed-off-by: Ignacy Gawędzki <ignacy.gawedzki at green-communications.fr>
---
package/libcurl/libcurl.mk | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/package/libcurl/libcurl.mk b/package/libcurl/libcurl.mk
index 3d00a4a33a..3410317b6d 100644
--- a/package/libcurl/libcurl.mk
+++ b/package/libcurl/libcurl.mk
@@ -58,8 +58,10 @@ endif
ifeq ($(BR2_PACKAGE_LIBCURL_OPENSSL),y)
LIBCURL_DEPENDENCIES += openssl
LIBCURL_CONF_OPTS += --with-openssl=$(STAGING_DIR)/usr \
- --with-ca-path=/etc/ssl/certs \
- --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt
+ --with-ca-path=/etc/ssl/certs
+ifeq ($(BR2_PACKAGE_CA_CERTIFICATES),y)
+LIBCURL_CONF_OPTS += --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt
+endif
else
LIBCURL_CONF_OPTS += --without-openssl
endif
--
2.51.0
More information about the buildroot
mailing list