autotools: enable static builds for commands

parent 8e43f33e
...@@ -1583,161 +1583,179 @@ init_lxc_SOURCES = cmd/lxc_init.c \ ...@@ -1583,161 +1583,179 @@ init_lxc_SOURCES = cmd/lxc_init.c \
string_utils.c string_utils.h string_utils.c string_utils.h
init_lxc_LDFLAGS = -pthread init_lxc_LDFLAGS = -pthread
lxc_monitord_SOURCES = cmd/lxc_monitord.c \ lxc_monitord_SOURCES = cmd/lxc_monitord.c
af_unix.c af_unix.h \
caps.c caps.h \ if ENABLE_STATIC_BINARIES
cgroups/cgfsng.c \ lxc_monitord_SOURCES += $(liblxc_la_SOURCES)
cgroups/cgroup.c cgroups/cgroup.h \ lxc_monitord_LDFLAGS = -all-static -pthread
cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \ else
cgroups/cgroup_utils.c cgroups/cgroup_utils.h \ lxc_monitord_SOURCES += af_unix.c af_unix.h \
commands.c commands.h \ caps.c caps.h \
commands_utils.c commands_utils.h \ cgroups/cgfsng.c \
conf.c conf.h \ cgroups/cgroup.c cgroups/cgroup.h \
confile.c confile.h \ cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
confile_utils.c confile_utils.h \ cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
error.c error.h \ commands.c commands.h \
file_utils.c file_utils.h \ commands_utils.c commands_utils.h \
../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \ conf.c conf.h \
initutils.c initutils.h \ confile.c confile.h \
log.c log.h \ confile_utils.c confile_utils.h \
lxclock.c lxclock.h \ error.c error.h \
mainloop.c mainloop.h \ file_utils.c file_utils.h \
monitor.c monitor.h \ ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
namespace.c namespace.h \ initutils.c initutils.h \
network.c network.h \ log.c log.h \
nl.c nl.h \ lxclock.c lxclock.h \
parse.c parse.h \ mainloop.c mainloop.h \
process_utils.c process_utils.h \ monitor.c monitor.h \
ringbuf.c ringbuf.h \ namespace.c namespace.h \
start.c start.h \ network.c network.h \
state.c state.h \ nl.c nl.h \
storage/btrfs.c storage/btrfs.h \ parse.c parse.h \
storage/dir.c storage/dir.h \ process_utils.c process_utils.h \
storage/loop.c storage/loop.h \ ringbuf.c ringbuf.h \
storage/lvm.c storage/lvm.h \ start.c start.h \
storage/nbd.c storage/nbd.h \ state.c state.h \
storage/overlay.c storage/overlay.h \ storage/btrfs.c storage/btrfs.h \
storage/rbd.c storage/rbd.h \ storage/dir.c storage/dir.h \
storage/rsync.c storage/rsync.h \ storage/loop.c storage/loop.h \
storage/storage.c storage/storage.h \ storage/lvm.c storage/lvm.h \
storage/storage_utils.c storage/storage_utils.h \ storage/nbd.c storage/nbd.h \
storage/zfs.c storage/zfs.h \ storage/overlay.c storage/overlay.h \
string_utils.c string_utils.h \ storage/rbd.c storage/rbd.h \
sync.c sync.h \ storage/rsync.c storage/rsync.h \
syscall_numbers.h \ storage/storage.c storage/storage.h \
terminal.c terminal.h \ storage/storage_utils.c storage/storage_utils.h \
utils.c utils.h \ storage/zfs.c storage/zfs.h \
uuid.c uuid.h \ string_utils.c string_utils.h \
$(LSM_SOURCES) sync.c sync.h \
syscall_numbers.h \
terminal.c terminal.h \
utils.c utils.h \
uuid.c uuid.h \
$(LSM_SOURCES)
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_monitord_SOURCES += seccomp.c lxcseccomp.h lxc_monitord_SOURCES += seccomp.c lxcseccomp.h
endif endif
endif
lxc_user_nic_SOURCES = cmd/lxc_user_nic.c \ lxc_user_nic_SOURCES = cmd/lxc_user_nic.c
af_unix.c af_unix.h \
caps.c caps.h \ if ENABLE_STATIC_BINARIES
cgroups/cgfsng.c \ lxc_user_nic_SOURCES += $(liblxc_la_SOURCES)
cgroups/cgroup.c cgroups/cgroup.h \ lxc_user_nic_LDFLAGS = -all-static -pthread
cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \ else
cgroups/cgroup_utils.c cgroups/cgroup_utils.h \ lxc_user_nic_SOURCES += af_unix.c af_unix.h \
commands.c commands.h \ caps.c caps.h \
commands_utils.c commands_utils.h \ cgroups/cgfsng.c \
conf.c conf.h \ cgroups/cgroup.c cgroups/cgroup.h \
confile.c confile.h \ cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
confile_utils.c confile_utils.h \ cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
error.c error.h \ commands.c commands.h \
file_utils.c file_utils.h \ commands_utils.c commands_utils.h \
../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \ conf.c conf.h \
initutils.c initutils.h \ confile.c confile.h \
log.c log.h \ confile_utils.c confile_utils.h \
lxclock.c lxclock.h \ error.c error.h \
mainloop.c mainloop.h \ file_utils.c file_utils.h \
memory_utils.h \ ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
monitor.c monitor.h \ initutils.c initutils.h \
namespace.c namespace.h \ log.c log.h \
network.c network.h \ lxclock.c lxclock.h \
nl.c nl.h \ mainloop.c mainloop.h \
parse.c parse.h \ memory_utils.h \
process_utils.c process_utils.h \ monitor.c monitor.h \
ringbuf.c ringbuf.h \ namespace.c namespace.h \
start.c start.h \ network.c network.h \
state.c state.h \ nl.c nl.h \
storage/btrfs.c storage/btrfs.h \ parse.c parse.h \
storage/dir.c storage/dir.h \ process_utils.c process_utils.h \
storage/loop.c storage/loop.h \ ringbuf.c ringbuf.h \
storage/lvm.c storage/lvm.h \ start.c start.h \
storage/nbd.c storage/nbd.h \ state.c state.h \
storage/overlay.c storage/overlay.h \ storage/btrfs.c storage/btrfs.h \
storage/rbd.c storage/rbd.h \ storage/dir.c storage/dir.h \
storage/rsync.c storage/rsync.h \ storage/loop.c storage/loop.h \
storage/storage.c storage/storage.h \ storage/lvm.c storage/lvm.h \
storage/storage_utils.c storage/storage_utils.h \ storage/nbd.c storage/nbd.h \
storage/zfs.c storage/zfs.h \ storage/overlay.c storage/overlay.h \
string_utils.c string_utils.h \ storage/rbd.c storage/rbd.h \
sync.c sync.h \ storage/rsync.c storage/rsync.h \
syscall_numbers.h \ storage/storage.c storage/storage.h \
syscall_wrappers.h \ storage/storage_utils.c storage/storage_utils.h \
terminal.c terminal.h \ storage/zfs.c storage/zfs.h \
utils.c utils.h \ string_utils.c string_utils.h \
uuid.c uuid.h \ sync.c sync.h \
$(LSM_SOURCES) syscall_numbers.h \
syscall_wrappers.h \
terminal.c terminal.h \
utils.c utils.h \
uuid.c uuid.h \
$(LSM_SOURCES)
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_user_nic_SOURCES += seccomp.c lxcseccomp.h lxc_user_nic_SOURCES += seccomp.c lxcseccomp.h
endif endif
endif
lxc_usernsexec_SOURCES = cmd/lxc_usernsexec.c \ lxc_usernsexec_SOURCES = cmd/lxc_usernsexec.c
af_unix.c af_unix.h \
caps.c caps.h \ if ENABLE_STATIC_BINARIES
cgroups/cgfsng.c \ lxc_usernsexec_SOURCES += $(liblxc_la_SOURCES)
cgroups/cgroup.c cgroups/cgroup.h \ lxc_usernsexec_LDFLAGS = -all-static -pthread
cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \ else
cgroups/cgroup_utils.c cgroups/cgroup_utils.h \ lxc_usernsexec_SOURCES += af_unix.c af_unix.h \
commands.c commands.h \ caps.c caps.h \
commands_utils.c commands_utils.h \ cgroups/cgfsng.c \
conf.c conf.h \ cgroups/cgroup.c cgroups/cgroup.h \
confile.c confile.h \ cgroups/cgroup2_devices.c cgroups/cgroup2_devices.h \
confile_utils.c confile_utils.h \ cgroups/cgroup_utils.c cgroups/cgroup_utils.h \
error.c error.h \ commands.c commands.h \
file_utils.c file_utils.h \ commands_utils.c commands_utils.h \
../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \ conf.c conf.h \
initutils.c initutils.h \ confile.c confile.h \
list.h \ confile_utils.c confile_utils.h \
log.c log.h \ error.c error.h \
lxclock.c lxclock.h \ file_utils.c file_utils.h \
macro.h \ ../include/netns_ifaddrs.c ../include/netns_ifaddrs.h \
mainloop.c mainloop.h \ initutils.c initutils.h \
memory_utils.h \ list.h \
monitor.c monitor.h \ log.c log.h \
namespace.c namespace.h \ lxclock.c lxclock.h \
network.c network.h \ macro.h \
nl.c nl.h \ mainloop.c mainloop.h \
parse.c parse.h \ memory_utils.h \
process_utils.c process_utils.h \ monitor.c monitor.h \
ringbuf.c ringbuf.h \ namespace.c namespace.h \
start.c start.h \ network.c network.h \
state.c state.h \ nl.c nl.h \
storage/btrfs.c storage/btrfs.h \ parse.c parse.h \
storage/dir.c storage/dir.h \ process_utils.c process_utils.h \
storage/loop.c storage/loop.h \ ringbuf.c ringbuf.h \
storage/lvm.c storage/lvm.h \ start.c start.h \
storage/nbd.c storage/nbd.h \ state.c state.h \
storage/overlay.c storage/overlay.h \ storage/btrfs.c storage/btrfs.h \
storage/rbd.c storage/rbd.h \ storage/dir.c storage/dir.h \
storage/rsync.c storage/rsync.h \ storage/loop.c storage/loop.h \
storage/storage.c storage/storage.h \ storage/lvm.c storage/lvm.h \
storage/storage_utils.c storage/storage_utils.h \ storage/nbd.c storage/nbd.h \
storage/zfs.c storage/zfs.h \ storage/overlay.c storage/overlay.h \
string_utils.c string_utils.h \ storage/rbd.c storage/rbd.h \
sync.c sync.h \ storage/rsync.c storage/rsync.h \
syscall_wrappers.h \ storage/storage.c storage/storage.h \
terminal.c terminal.h \ storage/storage_utils.c storage/storage_utils.h \
utils.c utils.h \ storage/zfs.c storage/zfs.h \
uuid.c uuid.h \ string_utils.c string_utils.h \
$(LSM_SOURCES) sync.c sync.h \
syscall_wrappers.h \
terminal.c terminal.h \
utils.c utils.h \
uuid.c uuid.h \
$(LSM_SOURCES)
if ENABLE_SECCOMP if ENABLE_SECCOMP
lxc_usernsexec_SOURCES += seccomp.c lxcseccomp.h lxc_usernsexec_SOURCES += seccomp.c lxcseccomp.h
endif endif
endif endif
endif
if ENABLE_TOOLS 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