From f66ebfa0f3b4f6bae3424d637835d3caaa220430 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Thu, 22 Feb 2024 18:41:46 +0100 Subject: [PATCH] m4/openssl.m4: fix cross-compilation with wolfssl Do not append -I/usr/include/wolfssl when cross-compiling Signed-off-by: Fabrice Fontaine --- m4/openssl.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m4/openssl.m4 b/m4/openssl.m4 index 6c2d6a688..d1dbbac29 100644 --- a/m4/openssl.m4 +++ b/m4/openssl.m4 @@ -228,7 +228,7 @@ AC_DEFUN([SUDO_CHECK_OPENSSL], [ # So we find the openssl compat headers under wolfssl AX_APPEND_FLAG([$f/wolfssl], [CPPFLAGS]) done - if test "$CPPFLAGS" = "$O_CPPFLAGS"; then + if test "$cross_compiling" != "yes" -a "$CPPFLAGS" = "$O_CPPFLAGS"; then # So we find the openssl compat headers under wolfssl (XXX) AX_APPEND_FLAG([-I/usr/include/wolfssl], [CPPFLAGS]) fi