diff mbox series

[meta-oe] iperf3: fix do_configure failure for native variant

Message ID 20261103062216.1796845-1-chenqi_hycx@cetc.com.cn
State Under Review
Headers show
Series [meta-oe] iperf3: fix do_configure failure for native variant | expand

Commit Message

Chen Qi Nov. 3, 2026, 6:22 a.m. UTC
From: Chen Qi <chenqi_hycx@cetc.com.cn>

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 <chenqi_hycx@cetc.com.cn>
---
 meta-oe/recipes-benchmark/iperf3/iperf3_3.22.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
diff mbox series

Patch

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"