summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-11-28 03:06:07 +0000
committerEric Andersen <andersen@codepoet.org>2002-11-28 03:06:07 +0000
commit224c89343a4ce6f1e7237074bb1ae403d860912b (patch)
tree0aed78a678c028336cdd2b4ab7c5ce53248ab957
parentae35d725cf586347b2adb1a6fe4216e70fce16cf (diff)
Fix compilation on mips
-rw-r--r--test/Rules.mak14
1 files changed, 8 insertions, 6 deletions
diff --git a/test/Rules.mak b/test/Rules.mak
index 8990d2c3d..c90f9744e 100644
--- a/test/Rules.mak
+++ b/test/Rules.mak
@@ -12,7 +12,7 @@ include $(TESTDIR)Config
# Use NATIVE_ARCH here since running these test is not
# even possible when cross compiling...
-NATIVE_ARCH:= ${shell uname -m | sed \
+NATIVE_ARCH:= $(shell uname -m | sed \
-e 's/i.86/i386/' \
-e 's/sparc.*/sparc/' \
-e 's/arm.*/arm/g' \
@@ -21,9 +21,9 @@ NATIVE_ARCH:= ${shell uname -m | sed \
-e 's/v850.*/v850/g' \
-e 's/sh[234].*/sh/' \
-e 's/mips.*/mips/' \
- }
+ )
ifeq ($(strip $(TARGET_ARCH)),)
-TARGET_ARCH:=${shell $(CC) -dumpmachine | sed -e s'/-.*//' \
+TARGET_ARCH:=$(shell $(CC) -dumpmachine | sed -e s'/-.*//' \
-e 's/i.86/i386/' \
-e 's/sparc.*/sparc/' \
-e 's/arm.*/arm/g' \
@@ -31,10 +31,12 @@ TARGET_ARCH:=${shell $(CC) -dumpmachine | sed -e s'/-.*//' \
-e 's/ppc/powerpc/g' \
-e 's/v850.*/v850/g' \
-e 's/sh[234]/sh/' \
- -e 's/mips.*/mips/' \
- }
+ -e 's/mips-.*/mips/' \
+ -e 's/mipsel-.*/mipsel/' \
+ -e 's/cris.*/cris/' \
+ )
endif
-
+export TARGET_ARCH
# If you are running a cross compiler, you may want to set this
# to something more interesting...