]> xenbits.xensource.com Git - people/liuw/stubdom.git/commitdiff
x86: Add -fno-exceptions to list of possibly-supported CFLAGS for embedded targets.
authorKeir Fraser <keir.fraser@citrix.com>
Sun, 25 Jul 2010 21:20:47 +0000 (22:20 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Sun, 25 Jul 2010 21:20:47 +0000 (22:20 +0100)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Makefile

index e0e8a78b0acc6679f981ccf12bb6e5a51b2b3470..aee3592d707285831eeb9b7ecd2153537db9fb26 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -58,9 +58,7 @@ CROSS_PREFIX=$(CURDIR)/$(CROSS_ROOT)
 # Disable PIE/SSP if GCC supports them. They can break us.
 TARGET_CFLAGS += $(CFLAGS)
 TARGET_CPPFLAGS += $(CPPFLAGS)
-TARGET_CFLAGS += $(call cc-option,$(CC),-nopie,)
-TARGET_CFLAGS += $(call cc-option,$(CC),-fno-stack-protector,)
-TARGET_CFLAGS += $(call cc-option,$(CC),-fno-stack-protector-all,)
+$(call cc-options-add,TARGET_CFLAGS,CC,$(EMBEDDED_EXTRA_CFLAGS))
 
 # Do not use host headers and libs
 GCC_INSTALL = $(shell LANG=C gcc -print-search-dirs | sed -n -e 's/install: \(.*\)/\1/p')