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 <patrick@georgi-clan.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@310 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
Stefan Reinauer 2007-05-05 19:51:27 +00:00
parent 3ba16aed25
commit 290f6df4b8

View file

@ -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