[CRIU] [PATCH 2/2] Makefile: Add LDFLAGS directive

Chanho Park chanho61.park at samsung.com
Tue Jun 11 00:18:28 EDT 2013


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
-- 
1.7.9.5



More information about the CRIU mailing list