autotools: enable static builds for commands

parent 8e43f33e
......@@ -1583,8 +1583,13 @@ init_lxc_SOURCES = cmd/lxc_init.c \
string_utils.c string_utils.h
init_lxc_LDFLAGS = -pthread
lxc_monitord_SOURCES = cmd/lxc_monitord.c \
af_unix.c af_unix.h \
lxc_monitord_SOURCES = cmd/lxc_monitord.c
if ENABLE_STATIC_BINARIES
lxc_monitord_SOURCES += $(liblxc_la_SOURCES)
lxc_monitord_LDFLAGS = -all-static -pthread
else
lxc_monitord_SOURCES += af_unix.c af_unix.h \
caps.c caps.h \
cgroups/cgfsng.c \
cgroups/cgroup.c cgroups/cgroup.h \
......@@ -1632,9 +1637,15 @@ lxc_monitord_SOURCES = cmd/lxc_monitord.c \
if ENABLE_SECCOMP
lxc_monitord_SOURCES += seccomp.c lxcseccomp.h
endif
endif
lxc_user_nic_SOURCES = cmd/lxc_user_nic.c \
af_unix.c af_unix.h \
lxc_user_nic_SOURCES = cmd/lxc_user_nic.c
if ENABLE_STATIC_BINARIES
lxc_user_nic_SOURCES += $(liblxc_la_SOURCES)
lxc_user_nic_LDFLAGS = -all-static -pthread
else
lxc_user_nic_SOURCES += af_unix.c af_unix.h \
caps.c caps.h \
cgroups/cgfsng.c \
cgroups/cgroup.c cgroups/cgroup.h \
......@@ -1684,9 +1695,15 @@ lxc_user_nic_SOURCES = cmd/lxc_user_nic.c \
if ENABLE_SECCOMP
lxc_user_nic_SOURCES += seccomp.c lxcseccomp.h
endif
endif
lxc_usernsexec_SOURCES = cmd/lxc_usernsexec.c \
af_unix.c af_unix.h \
lxc_usernsexec_SOURCES = cmd/lxc_usernsexec.c
if ENABLE_STATIC_BINARIES
lxc_usernsexec_SOURCES += $(liblxc_la_SOURCES)
lxc_usernsexec_LDFLAGS = -all-static -pthread
else
lxc_usernsexec_SOURCES += af_unix.c af_unix.h \
caps.c caps.h \
cgroups/cgfsng.c \
cgroups/cgroup.c cgroups/cgroup.h \
......@@ -1738,6 +1755,7 @@ if ENABLE_SECCOMP
lxc_usernsexec_SOURCES += seccomp.c lxcseccomp.h
endif
endif
endif
if ENABLE_TOOLS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment