summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-02-14 08:25:26 +0000
committerMike Frysinger <vapier@gentoo.org>2007-02-14 08:25:26 +0000
commite5bdbd0f718da0e4290639afeedb2700b64a8469 (patch)
treefc87350bc12f48b7fb0d81040b17a6046a8fbc22 /Rules.mak
parent43a95b8896b0d271de3bbb28cc18810f39b2e15b (diff)
make arch default to hostarch
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak4
1 files changed, 4 insertions, 0 deletions
diff --git a/Rules.mak b/Rules.mak
index f1c46888f..c4b0e23af 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -47,6 +47,10 @@ STRIP_FLAGS ?= -x -R .note -R .comment
# Select the compiler needed to build binaries for your development system
HOSTCC = gcc
BUILD_CFLAGS = -O2 -Wall
+export ARCH := $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
+ -e s/arm.*/arm/ -e s/sa110/arm/ \
+ -e s/s390x/s390/ -e s/parisc64/parisc/ \
+ -e s/ppc.*/powerpc/ -e s/mips.*/mips/ )
#---------------------------------------------------------