From 290f6df4b84cefdc55c73262051da78710ce2964 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Sat, 5 May 2007 19:51:27 +0000 Subject: [PATCH] the nostdinc + `gcc...` hack breaks build if "gcc" isn't the compiler actually used for the build (eg. on cross compiler setups), if that compiler is too different from "gcc" (the one in PATH) Signed-off-by: Patrick Georgi Acked-by: Stefan Reinauer git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@310 f3766cd6-281f-0410-b1cd-43a5c92072e9 --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 850cc46301..3eead7a118 100644 --- a/Makefile +++ b/Makefile @@ -39,7 +39,6 @@ CC := gcc CFLAGS := -Os -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ -Werror-implicit-function-declaration -Wstrict-aliasing \ -fno-common -ffreestanding -fno-builtin -fomit-frame-pointer \ - -nostdinc -isystem `gcc -print-file-name=include` \ -mpreferred-stack-boundary=2 -mregparm=3 -pipe # FIXME: Does stack boundary or regparm break the code on real hw? @@ -103,6 +102,8 @@ OBJCOPY := $(OBJCOPY_$(ARCH)) CPPFLAGS := $(LINUXBIOSINCLUDE) CFLAGS += $(LINUXBIOSINCLUDE) +CFLAGS += -nostdinc -isystem `$(CC) -print-file-name=include` + include lib/Makefile include device/Makefile include console/Makefile