2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

m4/openssl.m4: fix cross-compilation with wolfssl

Do not append -I/usr/include/wolfssl when cross-compiling

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
This commit is contained in:
Fabrice Fontaine
2024-02-22 18:41:46 +01:00
committed by Todd C. Miller
parent 81acb2bd7b
commit f66ebfa0f3

View File

@@ -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