From 994bcb9764af0b26a256d99c05993836f816eb43 Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Thu, 6 Dec 2012 23:49:17 +0100 Subject: [PATCH] search for clock_gettime instead of blindly linking rt --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index c7b7b1b..9512a1e 100644 --- a/configure.ac +++ b/configure.ac @@ -116,7 +116,7 @@ AC_CHECK_FUNCS([dlopen dlclose dlsym]) case "${host}" in *-*-linux*) # for timeutils - LIBS="$LIBS -lrt" + AC_SEARCH_LIBS([clock_gettime], [rt]) ;; *-apple-darwin*) LIBS="$LIBS -framework CoreVideo -framework IOKit" -- 2.34.1