1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Daniel Stenberg 2006-05-01 21:21:15 +00:00
parent 23aa325d1d
commit 5c1087beff

21
tools/configure vendored
View file

@ -1070,6 +1070,27 @@ else
fi 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 if test "X$ccache" = "Xyes"; then
CC="ccache $CC" CC="ccache $CC"
fi fi