From b783edaee8252bfdba3f7b3fd29519a81ce71e42 Mon Sep 17 00:00:00 2001 From: wdenk Date: Wed, 25 Jun 2003 22:26:29 +0000 Subject: * 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 --- config.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'config.mk') diff --git a/config.mk b/config.mk index 4dc350fe61..c8358cf782 100644 --- a/config.mk +++ b/config.mk @@ -107,10 +107,12 @@ LDSCRIPT := $(TOPDIR)/board/$(BOARDDIR)/u-boot.lds 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 -- cgit v1.2.1