From 647c7a9a39ac2927c1dfcd259a0b964ad959a066 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 30 May 2002 09:16:54 +0000 Subject: Cool. An even better way to get the gcc include dir which eliminates several external program calls, thanks to a suggestion from rmk. -Erik --- Rules.mak | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Rules.mak') diff --git a/Rules.mak b/Rules.mak index 19a622601..cbcb085d8 100644 --- a/Rules.mak +++ b/Rules.mak @@ -37,7 +37,6 @@ UCLIBC_LDSO:=ld-uClibc.so.$(MAJOR_VERSION) LIBC:=$(TOPDIR)libc/libc.a BUILDTIME:= ${shell TZ=UTC date --utc "+%Y.%m.%d-%H:%M%z"} -GCCINCDIR:= ${shell $(CC) -print-search-dirs | sed -ne "s/install: \(.*\)/\1include/gp"} NATIVE_ARCH:= ${shell uname -m | sed \ -e 's/i.86/i386/' \ -e 's/sparc.*/sparc/' \ @@ -86,7 +85,7 @@ endif ARFLAGS:=r CFLAGS:=$(WARNINGS) $(OPTIMIZATION) -fno-builtin -nostdinc $(CPUFLAGS) \ - -nostdinc -I$(TOPDIR)include -I$(GCCINCDIR) -I. -D_LIBC $(ARCH_CFLAGS) + -nostdinc -I$(TOPDIR)include -iwithprefix include -I. -D_LIBC $(ARCH_CFLAGS) NATIVE_CFLAGS:=-O2 -Wall ifeq ($(strip $(DODEBUG)),true) -- cgit v1.2.3