Skip to content

Commit 91239dc

Browse files
Only search for clock_gettime when using RNG with wolfEntropy.
1 parent 17bb8c4 commit 91239dc

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

configure.ac

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -728,11 +728,6 @@ then
728728
AM_CFLAGS="$AM_CFLAGS -DNO_DEV_RANDOM -DNO_WRITEV -DNO_STDIO_FILESYSTEM -DWOLFSSL_NO_SOCK -DWOLFSSL_USER_IO"
729729
fi
730730

731-
if test "$ENABLED_RNG" = "yes" || test "$ENABLED_BENCHMARK" = "yes"
732-
then
733-
AC_SEARCH_LIBS([clock_gettime],[rt])
734-
fi
735-
736731

737732
# MATH LIBRARY SELECTION
738733

@@ -6411,6 +6406,11 @@ then
64116406
done
64126407
fi
64136408
6409+
if (test "$ENABLED_RNG" = "yes" && test "$ENABLED_ENTROPY_MEMUSE" != "no") || test "$ENABLED_BENCHMARK" = "yes"
6410+
then
6411+
AC_SEARCH_LIBS([clock_gettime],[rt])
6412+
fi
6413+
64146414
64156415
# Filesystem Build
64166416
if test "$ENABLED_LINUXKM" = "yes"

0 commit comments

Comments
 (0)