diff options
| -rw-r--r-- | meta/recipes-support/curl/curl_8.7.1.bb | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/meta/recipes-support/curl/curl_8.7.1.bb b/meta/recipes-support/curl/curl_8.7.1.bb index 6c02746394..0af6a41399 100644 --- a/meta/recipes-support/curl/curl_8.7.1.bb +++ b/meta/recipes-support/curl/curl_8.7.1.bb | |||
| @@ -92,16 +92,21 @@ PACKAGECONFIG[verbose] = "--enable-verbose,--disable-verbose" | |||
| 92 | PACKAGECONFIG[zlib] = "--with-zlib=${STAGING_LIBDIR}/../,--without-zlib,zlib" | 92 | PACKAGECONFIG[zlib] = "--with-zlib=${STAGING_LIBDIR}/../,--without-zlib,zlib" |
| 93 | PACKAGECONFIG[zstd] = "--with-zstd,--without-zstd,zstd" | 93 | PACKAGECONFIG[zstd] = "--with-zstd,--without-zstd,zstd" |
| 94 | 94 | ||
| 95 | # Use host certificates for non-target builds. As libcurl doesn't honor any of the env vars (like | ||
| 96 | # for example CURL_CA_PATH) that curl-cli does, we need to explicitly set '--with-ca-bundle' | ||
| 97 | # accordingly, so that there is a working, built-in default even for those tools that use libcurl, | ||
| 98 | # but don't have custom env var handling implemented (like opkg). | ||
| 99 | CURL_CA_BUNDLE_BASE_DIR ?= "/etc" | ||
| 100 | CURL_CA_BUNDLE_BASE_DIR:class-target = "${sysconfdir}" | ||
| 101 | |||
| 95 | EXTRA_OECONF = " \ | 102 | EXTRA_OECONF = " \ |
| 96 | --disable-libcurl-option \ | 103 | --disable-libcurl-option \ |
| 97 | --disable-ntlm-wb \ | 104 | --disable-ntlm-wb \ |
| 98 | --without-libpsl \ | 105 | --without-libpsl \ |
| 99 | --enable-optimize \ | 106 | --enable-optimize \ |
| 107 | --with-ca-bundle=${CURL_CA_BUNDLE_BASE_DIR}/ssl/certs/ca-certificates.crt \ | ||
| 100 | ${@'--without-ssl' if (bb.utils.filter('PACKAGECONFIG', 'gnutls mbedtls openssl', d) == '') else ''} \ | 108 | ${@'--without-ssl' if (bb.utils.filter('PACKAGECONFIG', 'gnutls mbedtls openssl', d) == '') else ''} \ |
| 101 | " | 109 | " |
| 102 | EXTRA_OECONF:append:class-target = " \ | ||
| 103 | --with-ca-bundle=${sysconfdir}/ssl/certs/ca-certificates.crt \ | ||
| 104 | " | ||
| 105 | 110 | ||
| 106 | fix_absolute_paths () { | 111 | fix_absolute_paths () { |
| 107 | # cleanup buildpaths from curl-config | 112 | # cleanup buildpaths from curl-config |
