From 2d4b3e3d9123f675fe57affaa0c7c581a80d9109 Mon Sep 17 00:00:00 2001 From: Serge Hallyn Date: Mon, 2 Jun 2014 22:01:26 -0500 Subject: [PATCH] add init.lxc.static binary MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit To avoid having to copy all the library dependencies into the container. Signed-off-by: Serge Hallyn Acked-by: Stéphane Graber --- src/lxc/Makefile.am | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lxc/Makefile.am b/src/lxc/Makefile.am index ab8a46e6a..588a3ab6a 100644 --- a/src/lxc/Makefile.am +++ b/src/lxc/Makefile.am @@ -199,7 +199,7 @@ bin_PROGRAMS = \ lxc-usernsexec \ lxc-wait -sbin_PROGRAMS = init.lxc +sbin_PROGRAMS = init.lxc init.lxc.static pkglibexec_PROGRAMS = \ lxc-monitord \ lxc-user-nic @@ -233,6 +233,10 @@ lxc_snapshot_SOURCES = lxc_snapshot.c 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 +init_lxc_static_LDFLAGS = -static +init_lxc_static_LDADD = @CAP_LIBS@ + install-exec-local: install-soPROGRAMS mkdir -p $(DESTDIR)$(datadir)/lxc install -c -m 644 lxc.functions $(DESTDIR)$(datadir)/lxc -- 2.47.2