summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorBoris Gjenero <dreamlayers@rockbox.org>2012-10-22 21:30:01 +0200
committerMarcin Bukat <marcin.bukat@gmail.com>2012-10-24 14:02:41 +0200
commitc975de1534f4b4092ad75f85353eec32a9a31b92 (patch)
tree611c581d6ce81b6575f8b20ec8cd795e85ccb298 /tools
parent8ad8473d814c4ce4db62d35759939f1fae146361 (diff)
downloadrockbox-c975de1534f4b4092ad75f85353eec32a9a31b92.tar.gz
rockbox-c975de1534f4b4092ad75f85353eec32a9a31b92.zip
SH gcc 4.6.3 with link-time optimization, for Archos targets
This is work from FS#12431 synced to current HEAD and slightly tweaked (gcc 4.6.2 -> 4.6.3, binutils 2.21.1 -> 2.22) Change-Id: I76af91e80ac2a9c16a776c7f0a33cc51603bbf9b
Diffstat (limited to 'tools')
-rwxr-xr-xtools/configure6
-rwxr-xr-xtools/rockboxdev.sh4
2 files changed, 8 insertions, 2 deletions
diff --git a/tools/configure b/tools/configure
index 08d07b7797..4059a95a68 100755
--- a/tools/configure
+++ b/tools/configure
@@ -3707,6 +3707,12 @@ if test "$CC" = "sh-elf-gcc"; then
echo "WARNING: You use an unpatched gcc compiler: $gccver"
echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler"
fi
+
+ if test "$gccnum" -ge "406"; then
+ echo "Enabling link-time optimization"
+ GCCOPTS="$GCCOPTS -flto"
+ fi
+
fi
fi
diff --git a/tools/rockboxdev.sh b/tools/rockboxdev.sh
index 996aa86aea..78641b5b23 100755
--- a/tools/rockboxdev.sh
+++ b/tools/rockboxdev.sh
@@ -361,8 +361,8 @@ do
# default rule for Objective C. Disable the builtin make rules. See
# http://sourceware.org/ml/binutils/2005-12/msg00259.html
export MAKEFLAGS="-r $MAKEFLAGS"
- build "binutils" "sh-elf" "2.16.1" "" "--disable-werror"
- build "gcc" "sh-elf" "4.0.3" "gcc-4.0.3-rockbox-1.diff"
+ build "binutils" "sh-elf" "2.22" "" "--disable-werror"
+ build "gcc" "sh-elf" "4.6.3" "" "" "gmp mpfr mpc"
;;
[Ii])