summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorolh@suse.de <olh@suse.de>2003-12-02 00:44:48 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:04 -0700
commitbfd8a5d0f7361b6cb396eee7cdd686138ecd2066 (patch)
treef37e19e8568c94855aa43f86edd97d2f2580f451
parentc076a2bde406e617ebfeda6b921d1db89eb1a9f6 (diff)
[PATCH] ARCH detection for ppc
I'm not sure why ppc is converted to powerpc, it breaks at least $(ARCH) in klibc. gcc -dumpmachine powerpc-suse-linux
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6c8b311f4e..d8d2ec0d7b 100644
--- a/Makefile
+++ b/Makefile
@@ -64,7 +64,7 @@ export CROSS CC AR STRIP RANLIB
# code taken from uClibc to determine the current arch
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/powerpc/ppc/g'}
# code taken from uClibc to determine the gcc include dir
GCCINCDIR := ${shell $(CC) -print-search-dirs | sed -ne "s/install: \(.*\)/\1include/gp"}