* Header file cleanup for ARM
* Patch by Murray Jensen, 24 Jun 2003:
- make sure to use only U-boot provided header files
- fix problems with ".rodata.str1.4" section as used by GCC-3.x
diff --git a/config.mk b/config.mk
index 4dc350f..c8358cf 100644
--- a/config.mk
+++ b/config.mk
@@ -107,10 +107,12 @@
endif
OBJCFLAGS += --gap-fill=0xff
+gccincdir := $(shell $(CC) -print-file-name=include)
+
CPPFLAGS := $(DBGFLAGS) $(OPTFLAGS) $(RELFLAGS) \
-D__KERNEL__ -DTEXT_BASE=$(TEXT_BASE) \
-I$(TOPDIR)/include \
- -fno-builtin \
+ -fno-builtin -nostdinc -isystem $(gccincdir) \
-pipe $(PLATFORM_CPPFLAGS)
ifdef BUILD_TAG