From 3ba48ee9ef12a86ac92f3cb71585a1e9867dbd8c Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Mon, 16 Mar 2026 18:39:53 +0100 Subject: [PATCH] curl-wolfssl.m4: fix to use the correct value for pkg-config directory Before this patch the `$withval` variable may have contained `yes` or other unrelated values, instead of the wolfSSL directory configured via `--with-wolfssl=`. Fixing: ``` checking for wolfssl options with pkg-config... found configure: pkg-config --exists wolfssl trace: ---- begin PKG_CONFIG_PATH: |/home/runner/wolfssl/build/lib/pkgconfig:/home/runner/nghttp3/build/lib/pkgconfig:/home/runner/ngtcp2/build/lib/pkgconfig:/home/runner/nghttp2/build/lib/pkgconfig| PKG_CONFIG_LIBDIR: |yes/lib/pkgconfig| <=============== 'yes' used as base directory trying path: /home/runner/wolfssl/build/lib/pkgconfig for wolfssl ---- end ``` Ref: https://github.com/curl/curl/actions/runs/23146424326/job/67235762794?pr=20920#step:18:245 Cherry-picked from #20920 Closes #20943 --- m4/curl-wolfssl.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m4/curl-wolfssl.m4 b/m4/curl-wolfssl.m4 index 9e09be7fea..48812e724d 100644 --- a/m4/curl-wolfssl.m4 +++ b/m4/curl-wolfssl.m4 @@ -32,7 +32,7 @@ case "$OPT_WOLFSSL" in wolfpkg="" ;; *) - wolfpkg="$withval/lib/pkgconfig" + wolfpkg="$OPT_WOLFSSL/lib/pkgconfig" ;; esac