From: LoïMinier Date: Mon, 14 Mar 2011 07:31:36 +0000 (+0530) Subject: Add -marm -fno-stack-protector to CFLAGS on ARM X-Git-Tag: v1.5.0~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;ds=sidebyside;h=bcd83f847520a6e92fc3e8d2934f7e1c75380406;p=pandora-x-loader.git Add -marm -fno-stack-protector to CFLAGS on ARM The Linaro-based arm-linux-gnueabi cross-compiler in Ubuntu defaults to Thumb 2 and enables the stack protector by default, both of which can break x-loader at runtime (the former breaks the build). Signed-off-by: LoïMinier Signed-off-by: Anand Gadiyar --- diff --git a/config.mk b/config.mk index f4c58e9..80bc0ad 100644 --- a/config.mk +++ b/config.mk @@ -148,6 +148,9 @@ CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes \ else CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes endif +ifeq ($(ARCH),arm) +CFLAGS += -marm -fno-stack-protector +endif AFLAGS_DEBUG := -Wa,-gstabs AFLAGS := $(AFLAGS_DEBUG) -D__ASSEMBLY__ $(CPPFLAGS)