From: Keir Fraser Date: Sun, 25 Jul 2010 21:20:47 +0000 (+0100) Subject: x86: Add -fno-exceptions to list of possibly-supported CFLAGS for embedded targets. X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=262b2ba5c3f05c4ba1687327f293cd45ecfd67cd;p=people%2Fliuw%2Fstubdom.git x86: Add -fno-exceptions to list of possibly-supported CFLAGS for embedded targets. Signed-off-by: Keir Fraser --- diff --git a/Makefile b/Makefile index e0e8a78..aee3592 100644 --- 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')