[lxc-devel] [PATCH] cgmanager: only include CFLAGS and LDADD when needed

Dwight Engen dwight.engen at oracle.com
Thu Feb 6 22:38:16 UTC 2014


lxc-cgroup doesn't depend on cgmanager

Signed-off-by: Dwight Engen <dwight.engen at oracle.com>
---
 src/lxc/Makefile.am | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/src/lxc/Makefile.am b/src/lxc/Makefile.am
index 19511a4..c6ef8f5 100644
--- a/src/lxc/Makefile.am
+++ b/src/lxc/Makefile.am
@@ -152,10 +152,10 @@ liblxc_so_LDFLAGS = \
 
 liblxc_so_LDADD = $(CAP_LIBS) $(APPARMOR_LIBS) $(SECCOMP_LIBS)
 
-#if ENABLE_CGMANAGER
+if ENABLE_CGMANAGER
 liblxc_so_LDADD += $(CGMANAGER_LIBS) $(DBUS_LIBS) $(NIH_LIBS) $(NIH_DBUS_LIBS)
 liblxc_so_CFLAGS += $(CGMANAGER_CFLAGS) $(DBUS_CFLAGS) $(NIH_CFLAGS) $(NIH_DBUS_CFLAGS)
-#endif
+endif
 
 bin_SCRIPTS = lxc-checkconfig
 
@@ -211,11 +211,6 @@ LDADD=liblxc.so @CAP_LIBS@ @APPARMOR_LIBS@ @SECCOMP_LIBS@
 lxc_attach_SOURCES = lxc_attach.c
 lxc_autostart_SOURCES = lxc_autostart.c
 lxc_cgroup_SOURCES = lxc_cgroup.c
-#if ENABLE_CGMANAGER
-lxc_cgroup_SOURCES += cgmanager.c
-lxc_cgroup_LDADD = $(CGMANAGER_LIBS) $(DBUS_LIBS) $(NIH_LIBS) $(NIH_DBUS_LIBS) $(LDADD)
-lxc_cgroup_CFLAGS = $(CGMANAGER_CFLAGS) $(DBUS_CFLAGS) $(NIH_CFLAGS) $(NIH_DBUS_CFLAGS)
-#endif
 lxc_config_SOURCES = lxc_config.c
 lxc_console_SOURCES = lxc_console.c
 lxc_destroy_SOURCES = lxc_destroy.c
-- 
1.8.5.3



More information about the lxc-devel mailing list