mirror of https://gitee.com/openkylin/qemu.git
gcc4 warning (Paul Brook)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1596 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
9903da21e3
commit
1aff381f59
|
@ -88,6 +88,7 @@ kqemu="no"
|
||||||
kernel_path=""
|
kernel_path=""
|
||||||
cocoa="no"
|
cocoa="no"
|
||||||
check_gfx="yes"
|
check_gfx="yes"
|
||||||
|
check_gcc="yes"
|
||||||
|
|
||||||
# OS specific
|
# OS specific
|
||||||
targetos=`uname -s`
|
targetos=`uname -s`
|
||||||
|
@ -200,6 +201,8 @@ for opt do
|
||||||
;;
|
;;
|
||||||
--disable-gfx-check) check_gfx="no"
|
--disable-gfx-check) check_gfx="no"
|
||||||
;;
|
;;
|
||||||
|
--disable-gcc-check) check_gcc="no"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
@ -277,6 +280,23 @@ if $cc -fno-reorder-blocks -fno-optimize-sibling-calls -o $TMPO $TMPC 2> /dev/nu
|
||||||
have_gcc3_options="yes"
|
have_gcc3_options="yes"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Check for gcc4
|
||||||
|
if test "$check_gcc" = "yes" ; then
|
||||||
|
cat > $TMPC <<EOF
|
||||||
|
#if __GNUC__ >= 4
|
||||||
|
#error gcc4
|
||||||
|
#endif
|
||||||
|
int main(){return 0;}
|
||||||
|
EOF
|
||||||
|
if ! $cc -o $TMPO $TMPC 2>/dev/null ; then
|
||||||
|
echo "ERROR: \"$cc\" looks like gcc 4.x"
|
||||||
|
echo "QEMU is known to have problems when compiled with gcc 4.x"
|
||||||
|
echo "It is recommended that you use gcc 3.x to build QEMU"
|
||||||
|
echo "To use this compiler anyway, configure with --disable-gcc-check"
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
##########################################
|
##########################################
|
||||||
# SDL probe
|
# SDL probe
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue