Fix ARM version detection (need to pass mcpu/march to cpp).

Change-Id: Ic3283abca56a2bf0dd0f786b52f0f28a21442e13
This commit is contained in:
Thomas Martitz 2012-03-28 23:32:57 +02:00
parent 3a3f4d6476
commit f5a3dbc6d9

2
tools/configure vendored
View file

@ -3673,7 +3673,7 @@ RANLIB=`findtool ${RANLIB} --lit`
if [ -z "$arch" ]; then
cpp_defines=$(echo "" | $CPP -dD)
cpp_defines=$(echo "" | $CPP $GCCOPTS -dD)
if [ -n "$(echo $cpp_defines | grep -w __sh__)" ]; then
arch="sh"
elif [ -n "$(echo $cpp_defines | grep -w __m68k__)" ]; then