From: Stéphane Graber Date: Thu, 3 Jan 2013 17:24:06 +0000 (-0500) Subject: No need to link against rt and util on bionic X-Git-Tag: lxc-0.9.0.alpha3~1^2~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20d2e91bd3495f4368396cd13a0507d716703286;p=thirdparty%2Flxc.git No need to link against rt and util on bionic When building on bionic, -lrt and -lutil only cause a build failure. Dropping those fixes the build, so it appears that the symbols are defined in the main library. This commit moves -lrt and -lutil under a !IS_BIONIC check. Signed-off-by: Stéphane Graber Acked-by: Serge E. Hallyn --- diff --git a/src/lxc/Makefile.am b/src/lxc/Makefile.am index ef02b6dd1..4dec533db 100644 --- a/src/lxc/Makefile.am +++ b/src/lxc/Makefile.am @@ -94,7 +94,11 @@ liblxc_so_LDFLAGS = \ -shared \ -Wl,-soname,liblxc.so.$(firstword $(subst ., ,$(VERSION))) -liblxc_so_LDADD = -lutil $(CAP_LIBS) $(APPARMOR_LIBS) $(SECCOMP_LIBS) -lrt +liblxc_so_LDADD = $(CAP_LIBS) $(APPARMOR_LIBS) $(SECCOMP_LIBS) + +if !IS_BIONIC +liblxc_so_LDADD += -lutil -lrt +endif bin_SCRIPTS = \ lxc-ps \ @@ -140,7 +144,11 @@ AM_LDFLAGS = -Wl,-E if ENABLE_RPATH AM_LDFLAGS += -Wl,-rpath -Wl,$(libdir) endif -LDADD=liblxc.so @CAP_LIBS@ @APPARMOR_LIBS@ @SECCOMP_LIBS@ -lrt +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