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 <chenqi_hycx@cetc.com.cn>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
Chen Qi authored and Khem Raj committed 2026-11-03 07:10:30 -08:00
1 parent 0faea72623
commit c3377db45b
1 file changed
+4 -1
@@ -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"