got link error liblxc.so: undefined reference to `clock_gettime' clock_gettime is used by lxclock.c and is indeed in librt.
Signed-off-by: Dwight Engen <dwight.en...@oracle.com> --- src/lxc/Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lxc/Makefile.am b/src/lxc/Makefile.am index aba2e67..5497fab 100644 --- a/src/lxc/Makefile.am +++ b/src/lxc/Makefile.am @@ -168,6 +168,10 @@ AM_LDFLAGS += -Wl,-rpath -Wl,$(libdir) endif LDADD=liblxc.so @CAP_LIBS@ @APPARMOR_LIBS@ @SECCOMP_LIBS@ +if !IS_BIONIC +LDADD += -lrt +endif + lxc_attach_SOURCES = lxc_attach.c lxc_cgroup_SOURCES = lxc_cgroup.c lxc_checkpoint_SOURCES = lxc_checkpoint.c -- 1.7.12.3 ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb _______________________________________________ Lxc-devel mailing list Lxc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-devel