From c3377db45bd338a41874409d0a512d8b0be35c24 Mon Sep 17 00:00:00 2001 From: Chen Qi Date: Tue, 3 Nov 2026 14:22:15 +0800 Subject: [PATCH] iperf3: fix do_configure failure for native variant For native recipes, the prefix variable is not '/usr', resulting in iperf3-native searching for wrong location for ssl.h. Fix to use the correct location to find ssl.h. With this fix, iperf3, iperf3-native, nativesdk-iperf3 all succeed to build. Signed-off-by: Chen Qi Signed-off-by: Khem Raj --- meta-oe/recipes-benchmark/iperf3/iperf3_3.22.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/meta-oe/recipes-benchmark/iperf3/iperf3_3.22.bb b/meta-oe/recipes-benchmark/iperf3/iperf3_3.22.bb index 31da6f52b9..e6d60f611b 100644 --- a/meta-oe/recipes-benchmark/iperf3/iperf3_3.22.bb +++ b/meta-oe/recipes-benchmark/iperf3/iperf3_3.22.bb @@ -26,7 +26,10 @@ inherit autotools PACKAGECONFIG ?= "openssl" PACKAGECONFIG[lksctp] = "ac_cv_header_netinet_sctp_h=yes,ac_cv_header_netinet_sctp_h=no,lksctp-tools" -PACKAGECONFIG[openssl] = "--with-openssl=${RECIPE_SYSROOT}${prefix},--without-openssl,openssl" +PACKAGECONFIG[openssl] = "--with-openssl=${OPENSSL_ROOT},--without-openssl,openssl" + +OPENSSL_ROOT = "${RECIPE_SYSROOT}${prefix}" +OPENSSL_ROOT:class-native = "${RECIPE_SYSROOT_NATIVE}${prefix_native}" CFLAGS += "-D_GNU_SOURCE"