diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-05-30 09:16:54 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-05-30 09:16:54 +0000 |
commit | 647c7a9a39ac2927c1dfcd259a0b964ad959a066 (patch) | |
tree | 7b6219091d10a5589ef5fd98f950c8ad85b076d4 | |
parent | ef2e41138a4c23d6cb02710d091517d4ef33a110 (diff) |
Cool. An even better way to get the gcc include dir which eliminates
several external program calls, thanks to a suggestion from rmk.
-Erik
-rw-r--r-- | Rules.mak | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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) |