[CRIU] [PATCH 2/2] Makefile: Add LDFLAGS directive
Alexander Kartashov
alekskartashov at parallels.com
Tue Jun 11 01:27:24 EDT 2013
On 06/11/2013 08:18 AM, Chanho Park wrote:
> This patch adds LDFLAGS directive to build with -static.
> You can build in static mode like below:
> $ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi LDFLAGS=-static
>
> Signed-off-by: Chanho Park <chanho61.park at samsung.com>
> Signed-off-by: Myungjoo Ham <myungjoo.ham at samsung.com>
> ---
> Makefile | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Makefile b/Makefile
> index b418665..125b5b3 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -152,7 +152,7 @@ PROGRAM-BUILTINS += $(ARCH_DIR)/vdso-pie.o
>
> $(PROGRAM): $(SYSCALL-LIB) $(ARCH-LIB) $(PROGRAM-BUILTINS)
> $(E) " LINK " $@
> - $(Q) $(CC) $(CFLAGS) $^ $(LIBS) -o $@
> + $(Q) $(CC) $(CFLAGS) $^ $(LIBS) $(LDFLAGS) -o $@
>
> zdtm: all
> $(Q) $(MAKE) -C test/zdtm all
The patch is
Acked-by: Alexander Kartashov <alekskartashov at parallels.com>
--
Sincerely yours,
Alexander Kartashov
Intern
Core team
www.parallels.com
Skype: aleksandr.kartashov
Email: alekskartashov at parallels.com
More information about the CRIU
mailing list