[lxc-devel] [lxc/master] fix install error when using --disable-commands option

2xsec on Github lxc-bot at linuxcontainers.org
Fri Nov 30 06:32:45 UTC 2018


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 346 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20181130/fd76109a/attachment.bin>
-------------- next part --------------
From 9760cfccf2a708476a0921d7405102948235cb8b Mon Sep 17 00:00:00 2001
From: 2xsec <dh48.jeong at 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 <dh48.jeong at 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 liblxc.so. at LXC_ABI@ liblxc.so.$(firstword $(subst ., , at LXC_ABI@)); \
 	ln -sf liblxc.so.$(firstword $(subst ., , at 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*


More information about the lxc-devel mailing list