]> git.proxmox.com Git - mirror_lxc.git/commitdiff
ensure clock_gettime symbol is found
authorDwight Engen <dwight.engen@oracle.com>
Fri, 22 Feb 2013 15:55:54 +0000 (10:55 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 22 Feb 2013 16:00:39 +0000 (11:00 -0500)
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@oracle.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
configure.ac

index a133d16b49f918ba72e2d040e5617db44ed64911..88959ff841f36389077208a44f66b0e17c8d2612 100644 (file)
@@ -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