summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2010-08-24 13:41:45 +0000
committerThomas Martitz <kugel@rockbox.org>2010-08-24 13:41:45 +0000
commit3478bc5d6dc0a081c3aeb4f501c8b4cb4f53a78d (patch)
treee685975d5410c5336f6bfcb514e08de345a89e25 /tools
parent1aeb79dc3a21c9adea2878f0fff676f67bd55d97 (diff)
downloadrockbox-3478bc5d6dc0a081c3aeb4f501c8b4cb4f53a78d.tar.gz
rockbox-3478bc5d6dc0a081c3aeb4f501c8b4cb4f53a78d.tar.bz2
rockbox-3478bc5d6dc0a081c3aeb4f501c8b4cb4f53a78d.zip
mips is predefined by gcc, but we want it for paths. Don't let others fall into this trap again. Use __mips instead
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27872 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-xtools/configure3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/configure b/tools/configure
index 7c61b09ee7..e554c3d76b 100755
--- a/tools/configure
+++ b/tools/configure
@@ -442,7 +442,8 @@ arm1176jzscc () {
mipselcc () {
prefixtools mipsel-elf-
- GCCOPTS="$CCOPTS -march=mips32 -mtune=r4600 -mno-mips16 -mno-long-calls"
+ # mips is predefined, but we want it for paths. use __mips instead
+ GCCOPTS="$CCOPTS -march=mips32 -mtune=r4600 -mno-mips16 -mno-long-calls -Umips"
GCCOPTS="$GCCOPTS -ffunction-sections -msoft-float -G 0 -Wno-parentheses"
GCCOPTIMIZE="-fomit-frame-pointer"
endian="little"