Add -marm -fno-stack-protector to CFLAGS on ARM
[pandora-x-loader.git] / config.mk
index f4c58e9..80bc0ad 100644 (file)
--- 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)