From e82f4754ee905437d434f0d58c03e9ee2929224e Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Wed, 10 Feb 2010 20:31:38 +0000 Subject: Improve compiler detection and configuration in xcompile. Move -fno-stack-protector support from Makefile to xcompile. Signed-off-by: Patrick Georgi Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5113 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- Makefile | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 6cf1ff9c50..65a740595a 100644 --- a/Makefile +++ b/Makefile @@ -221,19 +221,7 @@ INCLUDES += -I$(shell $(CC) -print-search-dirs | head -n 1 | cut -d' ' -f2)inclu INCLUDES += -I$(top)/util/x86emu/include INCLUDES += -include $(obj)/build.h -try-run= $(shell set -e; \ -TMP=".$$$$.tmp"; \ -if ($(1)) > /dev/null 2>&1; \ -then echo "$(2)"; \ -else echo "$(3)"; \ -fi; rm -rf "$$TMP") - -cc-option= $(call try-run,\ -$(CC) $(1) -S -xc /dev/null -o "$$TMP", $(1), $(2)) - -STACKPROTECT += $(call cc-option, -fno-stack-protector,) - -CFLAGS = $(STACKPROTECT) $(INCLUDES) -Os -nostdinc +CFLAGS = $(INCLUDES) -Os -nostdinc CFLAGS += -nostdlib -Wall -Wundef -Wstrict-prototypes -Wmissing-prototypes CFLAGS += -Wwrite-strings -Wredundant-decls -Wno-trigraphs CFLAGS += -Wstrict-aliasing -Wshadow -- cgit v1.2.3