Discussion:
[lxc-devel] [lxc/master] fix install error when using --disable-commands option
2xsec on Github
2018-11-30 06:32:46 UTC
Permalink
From 9760cfccf2a708476a0921d7405102948235cb8b Mon Sep 17 00:00:00 2001
From: 2xsec <***@samsung.com>
Date: Fri, 30 Nov 2018 15:31:31 +0900
Subject: [PATCH] fix install error when using --disable-commands option

Signed-off-by: 2xsec <***@samsung.com>
---
src/lxc/Makefile.am | 2 ++
1 file changed, 2 insertions(+)

diff --git a/src/lxc/Makefile.am b/src/lxc/Makefile.am
index 90410a4845..95b0a2f724 100644
--- a/src/lxc/Makefile.am
+++ b/src/lxc/Makefile.am
@@ -463,8 +463,10 @@ install-exec-local: install-libLTLIBRARIES
ln -sf ***@LXC_ABI@ liblxc.so.$(firstword $(subst ., ,@LXC_ABI@)); \
ln -sf liblxc.so.$(firstword $(subst ., ,@LXC_ABI@)) liblxc.so

+if ENABLE_COMMANDS
install-exec-hook:
chmod u+s $(DESTDIR)$(libexecdir)/lxc/lxc-user-nic
+endif

uninstall-local:
$(RM) $(DESTDIR)$(libdir)/liblxc.so*

Loading...