From 443c2d12ca6e4653cde3bff52534ed020f28aedf Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Tue, 8 Dec 2009 20:53:03 +0100 Subject: [PATCH] Fix linking on OpenBSD OpenBSD doesn't need librt for clock_gettime, but configure was adding it to LIBS unconditionally. Bug reported by dovim. --- configure.ac.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac.in b/configure.ac.in index 23c7723..6e12868 100644 --- a/configure.ac.in +++ b/configure.ac.in @@ -782,7 +782,7 @@ dnl Some functions dnl AC_CHECK_FUNCS([calloc malloc free popen sysinfo getloadavg memrchr strndup gethostbyname_r]) -AC_SEARCH_LIBS(clock_gettime, [rt], conky_LIBS="$conky_LIBS -lrt" +AC_SEARCH_LIBS(clock_gettime, [rt], conky_LIBS="$conky_LIBS $LIBS" [AC_DEFINE(HAVE_CLOCK_GETTIME, 1, [Define if you have clock_gettime()])], [AC_CHECK_FUNCS([gettimeofday], [], [AC_MSG_ERROR([gettimeofday() not available!])])], []) -- 1.7.9.5