[CRIU] [PATCH 1/3] make: Provide mandatory options in cc-opts variable

Cyrill Gorcunov gorcunov at openvz.org
Fri Feb 22 06:59:10 EST 2013


On Fri, Feb 22, 2013 at 03:51:15PM +0400, Pavel Emelyanov wrote:
> 
> arch/arm/Makfile also has CFLAGS

Sasha, could you please confirm this patch doesn't break arm build?

---
From: Cyrill Gorcunov <gorcunov at openvz.org>
Date: Fri, 22 Feb 2013 15:57:48 +0400
Subject: [PATCH] make: arm -- Use syscalls-asm-y-asmflags instead of CFLAGS

CFLAGS can be overriden, we need own flags here.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 arch/arm/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index 6adada1..b52abb7 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -19,8 +19,8 @@ SYS-GEN-TBL	:= gen-sys-exec-tbl.pl
 
 SYS-EXEC-TBL	:= sys-exec-tbl.c
 
-CFLAGS		+= -fpie -Wstrict-prototypes -Wa,--noexecstack
-CFLAGS		+= -nostdlib -fomit-frame-pointer -I$(obj)
+syscalls-asm-y-asmflags		+= -fpie -Wstrict-prototypes -Wa,--noexecstack
+syscalls-asm-y-asmflags		+= -nostdlib -fomit-frame-pointer -I$(obj)
 ASMFLAGS	+= -D__ASSEMBLY__
 
 ARCH_BITS	:= 32
-- 
1.8.1.2



More information about the CRIU mailing list