Make the MIPS toolchain build on gcc 4.3+.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18766 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ca34981b4d
commit
ced0adc527
1 changed files with 4 additions and 1 deletions
|
@ -146,6 +146,7 @@ gccpatch="" # default is no gcc patch
|
||||||
gccver="4.0.3" # default gcc version
|
gccver="4.0.3" # default gcc version
|
||||||
binutils="2.16.1" # The binutils version to use
|
binutils="2.16.1" # The binutils version to use
|
||||||
gccconfigure="" #default is nothing added to configure
|
gccconfigure="" #default is nothing added to configure
|
||||||
|
binutilsconf="" #default is nothing added to configure
|
||||||
|
|
||||||
system=`uname -s`
|
system=`uname -s`
|
||||||
gccurl="http://www.rockbox.org/gcc"
|
gccurl="http://www.rockbox.org/gcc"
|
||||||
|
@ -183,6 +184,8 @@ case $arch in
|
||||||
gccver="4.1.2"
|
gccver="4.1.2"
|
||||||
binutils="2.17"
|
binutils="2.17"
|
||||||
gccconfigure="--disable-libssp"
|
gccconfigure="--disable-libssp"
|
||||||
|
binutilsconf="--disable-werror"
|
||||||
|
# necessary to make binutils build on gcc 4.3+
|
||||||
case $system in
|
case $system in
|
||||||
Interix)
|
Interix)
|
||||||
gccpatch="gcc-4.1.2-interix.diff"
|
gccpatch="gcc-4.1.2-interix.diff"
|
||||||
|
@ -268,7 +271,7 @@ mkdir build-binu
|
||||||
echo "ROCKBOXDEV: cd build-binu"
|
echo "ROCKBOXDEV: cd build-binu"
|
||||||
cd build-binu
|
cd build-binu
|
||||||
echo "ROCKBOXDEV: binutils/configure"
|
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"
|
echo "ROCKBOXDEV: binutils/make"
|
||||||
$make
|
$make
|
||||||
echo "ROCKBOXDEV: binutils/make install to $prefix/$target"
|
echo "ROCKBOXDEV: binutils/make install to $prefix/$target"
|
||||||
|
|
Loading…
Reference in a new issue