Skip to content

Commit 17bb8c4

Browse files
Check for whether librt is needed for clock_gettime.
1 parent 294e4c7 commit 17bb8c4

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

configure.ac

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,11 @@ 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+
731736

732737
# MATH LIBRARY SELECTION
733738

0 commit comments

Comments
 (0)