Only search for clock_gettime when using RNG with wolfEntropy.

This commit is contained in:
Kareem
2025-03-21 11:05:24 -07:00
parent 17bb8c4c84
commit 91239dc42d

View File

@@ -728,11 +728,6 @@ then
AM_CFLAGS="$AM_CFLAGS -DNO_DEV_RANDOM -DNO_WRITEV -DNO_STDIO_FILESYSTEM -DWOLFSSL_NO_SOCK -DWOLFSSL_USER_IO"
fi
if test "$ENABLED_RNG" = "yes" || test "$ENABLED_BENCHMARK" = "yes"
then
AC_SEARCH_LIBS([clock_gettime],[rt])
fi
# MATH LIBRARY SELECTION
@@ -6411,6 +6406,11 @@ then
done
fi
if (test "$ENABLED_RNG" = "yes" && test "$ENABLED_ENTROPY_MEMUSE" != "no") || test "$ENABLED_BENCHMARK" = "yes"
then
AC_SEARCH_LIBS([clock_gettime],[rt])
fi
# Filesystem Build
if test "$ENABLED_LINUXKM" = "yes"