diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2006-05-01 21:21:15 +0000 |
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2006-05-01 21:21:15 +0000 |
| commit | 5c1087beff2005b4f6bb8686e4770d6e44dca827 (patch) | |
| tree | 771b525e344a2c5cb0a7cc22d813310edb5b5860 | |
| parent | 23aa325d1dc7911b7f50b829dfe8b9d23005b9d1 (diff) | |
| download | rockbox-5c1087beff2005b4f6bb8686e4770d6e44dca827.zip rockbox-5c1087beff2005b4f6bb8686e4770d6e44dca827.tar.gz rockbox-5c1087beff2005b4f6bb8686e4770d6e44dca827.tar.bz2 rockbox-5c1087beff2005b4f6bb8686e4770d6e44dca827.tar.xz | |
Alert the user for gcc compiler version used for SH if not gcc4 with rockbox patch
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9855 a1c6a512-1295-4272-9138-f99709370657
| -rwxr-xr-x | tools/configure | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/configure b/tools/configure index faa67a8..1b85f0b 100755 --- a/tools/configure +++ b/tools/configure @@ -1070,6 +1070,27 @@ else fi +# check the compiler for SH platforms +if test "$CC" = "sh-elf-gcc"; then + if test "$gccnum" -lt "400"; then + echo "WARNING: Consider upgrading your compiler to the 4.0.X series!" + echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler" + else + # figure out patch status + gccpatch=`$CC --version`; + + if { echo $gccpatch | grep "rockbox" >/dev/null 2>&1; } then + echo "gcc $gccver is rockbox patched" + # then convert -O to -Os to get smaller binaries! + CCOPTS=`echo $CCOPTS | sed 's/ -O / -Os /'` + else + echo "WARNING: You use an unpatched gcc compiler: $gccver" + echo "WARNING: http://www.rockbox.org/twiki/bin/view/Main/CrossCompiler" + fi + fi +fi + + if test "X$ccache" = "Xyes"; then CC="ccache $CC" fi |