diff options
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/configure | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/configure b/tools/configure index faa67a8ee7..1b85f0be6f 100755 --- a/tools/configure +++ b/tools/configure | |||
@@ -1070,6 +1070,27 @@ else | |||
1070 | 1070 | ||
1071 | fi | 1071 | fi |
1072 | 1072 | ||
1073 | # check the compiler for SH platforms | ||
1074 | if test "$CC" = "sh-elf-gcc"; then | ||
1075 | if test "$gccnum" -lt "400"; then | ||
1076 | echo "WARNING: Consider upgrading your compiler to the 4.0.X series!" | ||
1077 | echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler" | ||
1078 | else | ||
1079 | # figure out patch status | ||
1080 | gccpatch=`$CC --version`; | ||
1081 | |||
1082 | if { echo $gccpatch | grep "rockbox" >/dev/null 2>&1; } then | ||
1083 | echo "gcc $gccver is rockbox patched" | ||
1084 | # then convert -O to -Os to get smaller binaries! | ||
1085 | CCOPTS=`echo $CCOPTS | sed 's/ -O / -Os /'` | ||
1086 | else | ||
1087 | echo "WARNING: You use an unpatched gcc compiler: $gccver" | ||
1088 | echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler" | ||
1089 | fi | ||
1090 | fi | ||
1091 | fi | ||
1092 | |||
1093 | |||
1073 | if test "X$ccache" = "Xyes"; then | 1094 | if test "X$ccache" = "Xyes"; then |
1074 | CC="ccache $CC" | 1095 | CC="ccache $CC" |
1075 | fi | 1096 | fi |