mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
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:
parent
3ba16aed25
commit
290f6df4b8
1 changed files with 2 additions and 1 deletions
3
Makefile
3
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
|
||||
|
|
Loading…
Add table
Reference in a new issue