diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-01-02 15:13:10 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-01-02 15:13:10 +0000 |
commit | 5d575db6a1023dade1b9df569e69746334d2f8ea (patch) | |
tree | b4fcfe0dbdc04f3e269c93bad92637759cf4a5a7 | |
parent | b4bb6f662bdfc73778b08404c82b04a29ea24a79 (diff) |
Cope with all variants of 'gcc -dumpmachine' output
-rw-r--r-- | Rules.mak | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -38,7 +38,7 @@ 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'} -TARGET_ARCH=${shell $(CC) -dumpmachine | sed -e s'/-linux//' -e 's/i.86/i386/' -e 's/sparc.*/sparc/' \ +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'} # Some nice architecture specific optimizations |