summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2008-09-29 20:31:31 +0000
committerJens Arnold <amiconn@rockbox.org>2008-09-29 20:31:31 +0000
commita28154940d54a29e4db9c7572366d02f6436eb53 (patch)
tree045752f1f9c718e35c1153160e3e8608b798ba58 /tools
parent173b411b87411dbac2d6d2c3c5789ed9e40f0fef (diff)
downloadrockbox-a28154940d54a29e4db9c7572366d02f6436eb53.tar.gz
rockbox-a28154940d54a29e4db9c7572366d02f6436eb53.tar.bz2
rockbox-a28154940d54a29e4db9c7572366d02f6436eb53.zip
Fixes for building the MIPS toolchain on Interix: (1) Binutils need -Werror disabled, because compiling binutils (and also gcc) spits a lot of alignment warings. (2) Gcc tries to call 'sh' without path in by default (#!sh), but Interix 3.5+ doesn't allow that.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18666 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-xtools/rockboxdev.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/tools/rockboxdev.sh b/tools/rockboxdev.sh
index 40a3a185d1..1b0a1d4e64 100755
--- a/tools/rockboxdev.sh
+++ b/tools/rockboxdev.sh
@@ -146,6 +146,7 @@ gccpatch="" # default is no gcc patch
gccver="4.0.3" # default gcc version
binutils="2.16.1" # The binutils version to use
gccconfigure="" #default is nothing added to configure
+binutilsconf="" #default is nothing added to configure
system=`uname -s`
gccurl="http://www.rockbox.org/gcc"
@@ -183,6 +184,14 @@ case $arch in
gccver="4.1.2"
binutils="2.17"
gccconfigure="--disable-libssp"
+ case $system in
+ Interix)
+ gccpatch="gcc-4.1.2-interix.diff"
+ binutilsconf="--disable-werror"
+ ;;
+ *)
+ ;;
+ esac
;;
*)
echo "An unsupported architecture option: $arch"
@@ -261,7 +270,7 @@ mkdir build-binu
echo "ROCKBOXDEV: cd build-binu"
cd build-binu
echo "ROCKBOXDEV: binutils/configure"
-../binutils-$binutils/configure --target=$target --prefix=$prefix/$target
+../binutils-$binutils/configure --target=$target --prefix=$prefix/$target $binutilsconf
echo "ROCKBOXDEV: binutils/make"
$make
echo "ROCKBOXDEV: binutils/make install to $prefix/$target"