]> git.proxmox.com Git - mirror_lxc.git/blobdiff - src/lxc/Makefile.am
fix install error when using --disable-commands option
[mirror_lxc.git] / src / lxc / Makefile.am
index 90410a4845268d74081d520a5e215e945757b5d1..95b0a2f724fc439214660fc3a66495f40b198188 100644 (file)
@@ -463,8 +463,10 @@ install-exec-local: install-libLTLIBRARIES
        ln -sf liblxc.so.@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*