[lxc-devel] [PATCH v2] ensure clock_gettime symbol is found
Dwight Engen
dwight.engen at oracle.com
Fri Feb 22 15:55:54 UTC 2013
got link error liblxc.so: undefined reference to `clock_gettime'
clock_gettime is used by lxclock.c and is in librt, or bionic libc.
Signed-off-by: Dwight Engen <dwight.engen at oracle.com>
---
configure.ac | 1 +
1 file changed, 1 insertion(+)
diff --git a/configure.ac b/configure.ac
index a133d16..88959ff 100644
--- a/configure.ac
+++ b/configure.ac
@@ -289,6 +289,7 @@ AC_CHECK_FUNCS([fgetln],
# Check for some libraries
AC_SEARCH_LIBS(sem_open, [rt pthread])
+AC_SEARCH_LIBS(clock_gettime, [rt])
# Check for some standard binaries
AC_PROG_GCC_TRADITIONAL
--
1.7.12.3
More information about the lxc-devel
mailing list