[Devel] Re: [PATCH 1/5][lxc] Enable static linking of some lxc binaries
Daniel Lezcano
dlezcano at fr.ibm.com
Mon Mar 22 07:44:30 PDT 2010
Sukadev Bhattiprolu wrote:
> From: Sukadev Bhattiprolu <sukadev at linux.vnet.ibm.com>
> Date: Wed, 10 Mar 2010 22:12:34 -0800
> Subject: [PATCH 1/5][lxc] Enable static linking of some lxc binaries
>
> This is a temporary commit to statically link lxc_checkpoint, lxc_execute
> and lxc_restart.
>
> Signed-off-by: Sukadev Bhattiprolu <sukadev at linux.vnet.ibm.com>
> ---
> src/lxc/Makefile2 | 35 +++++++++++++++++++++++++++++++++++
> 1 files changed, 35 insertions(+), 0 deletions(-)
> create mode 100644 src/lxc/Makefile2
>
> diff --git a/src/lxc/Makefile2 b/src/lxc/Makefile2
> new file mode 100644
> index 0000000..26b9cd3
> --- /dev/null
> +++ b/src/lxc/Makefile2
> @@ -0,0 +1,35 @@
> +BASEDIR = ../..
> +
> +USERCR ?= $(BASEDIR)/../user-cr-lxc/
> +
> +CFLAGS = -static -I . -I .. -I $(USERCR) -I $(USERCR)/include
> +LDFLAGS = $(USERCR)/libeclone.a -lutil
> +
> +LXC_OBJS = start.o stop.o conf.o confile.o arguments.o monitor.o \
> + log.o mainloop.o utils.o commands.o state.o cgroup.o \
> + error.o namespace.o parse.o network.o af_unix.o \
> + console.o nl.o
> +
> +USERCR_CHECKPOINT_OBJ = $(USERCR)/checkpoint.o
> +
> +USERCR_RESTART_OBJ = $(USERCR)/restart.o
> +
> +LXC_CHECKPOINT_OBJS = $(LXC_OBJS) $(USERCR_CHECKPOINT_OBJ) \
> + lxc_checkpoint.o checkpoint.o
> +
> +LXC_RESTART_OBJS = $(LXC_OBJS) $(USERCR_RESTART_OBJ) \
> + lxc_restart.o restart.o
> +
> +LXC_EXECUTE_OBJS = $(LXC_OBJS) lxc_execute.o
> +
> +lxc_checkpoint: $(LXC_CHECKPOINT_OBJS)
> + $(CC) -o lxc_checkpoint $(LXC_CHECKPOINT_OBJS) $(LDFLAGS)
> +
> +lxc_restart: $(LXC_RESTART_OBJS)
> + $(CC) -o lxc_restart $(LXC_RESTART_OBJS) $(LDFLAGS)
> +
> +lxc_execute: $(LXC_EXECUTE_OBJS)
> + $(CC) -o lxc_execute $(LXC_EXECUTE_OBJS) $(LDFLAGS)
> +
> +clean:
> + rm -f $(RESTART_OBJS)
Is it possible to add a 'configure' option and merge that with the lxc
Makefile.
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list