From c975de1534f4b4092ad75f85353eec32a9a31b92 Mon Sep 17 00:00:00 2001 From: Boris Gjenero Date: Mon, 22 Oct 2012 21:30:01 +0200 Subject: 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 --- tools/configure | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tools/configure') 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 -- cgit v1.2.3