[lxc-devel] [PATCH 6/6] Fix building init.lxc.static under bionic

Serge Hallyn serge.hallyn at ubuntu.com
Tue Jun 3 03:04:26 UTC 2014


Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
Signed-off-by: Serge Hallyn <serge.hallyn at ubuntu.com>
---
 src/lxc/Makefile.am | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/lxc/Makefile.am b/src/lxc/Makefile.am
index 588a3ab..2403bd7 100644
--- a/src/lxc/Makefile.am
+++ b/src/lxc/Makefile.am
@@ -234,6 +234,13 @@ lxc_usernsexec_SOURCES = lxc_usernsexec.c
 lxc_user_nic_SOURCES = lxc_user_nic.c network.c network.h
 
 init_lxc_static_SOURCES = lxc_init.c error.c log.c utils.c caps.c
+
+if !HAVE_GETLINE
+if HAVE_FGETLN
+init_lxc_static_SOURCES += ../include/getline.c
+endif
+endif
+
 init_lxc_static_LDFLAGS = -static
 init_lxc_static_LDADD = @CAP_LIBS@
 
-- 
2.0.0



More information about the lxc-devel mailing list