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