summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-01-09 10:20:35 +0000
committerEric Andersen <andersen@codepoet.org>2002-01-09 10:20:35 +0000
commitcf53afff95c253b8ef12c6f712c8022304f53dc2 (patch)
tree90e39f57e33a27e549b1ab7f79ea76fa07e240c7
parentf605da2fb6ec413fbd86e45a78f53cb2e721ab74 (diff)
Fixup v850 architecture autodetection, from Miles Bader
<miles@lsi.nec.co.jp>
-rw-r--r--Rules.mak6
1 files changed, 4 insertions, 2 deletions
diff --git a/Rules.mak b/Rules.mak
index a4149688e..7dc21f35c 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -37,9 +37,11 @@ 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/' \
- -e 's/arm.*/arm/g' -e 's/m68k.*/m68k/' -e 's/ppc/powerpc/g'}
+ -e 's/arm.*/arm/g' -e 's/m68k.*/m68k/' -e 's/ppc/powerpc/g' \
+ -e 's/v850.*/v850/g'}
TARGET_ARCH=${shell $(CC) -dumpmachine | sed -e s'/-.*//' -e 's/i.86/i386/' -e 's/sparc.*/sparc/' \
- -e 's/arm.*/arm/g' -e 's/m68k.*/m68k/' -e 's/ppc/powerpc/g'}
+ -e 's/arm.*/arm/g' -e 's/m68k.*/m68k/' -e 's/ppc/powerpc/g' \
+ -e 's/v850.*/v850/g'}
# Some nice architecture specific optimizations
ifndef OPTIMIZATION