mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
fix CCVER gathering for cross-compiling (the i386-mingw32msvc-gcc was
throwing the regex off)
This commit is contained in:
parent
00f5d82a86
commit
ba4b11da24
1 changed files with 1 additions and 1 deletions
|
@ -1223,7 +1223,7 @@ if test "x$optimize" = xyes; then
|
||||||
shift
|
shift
|
||||||
args="$*"
|
args="$*"
|
||||||
AC_MSG_CHECKING(for gcc version)
|
AC_MSG_CHECKING(for gcc version)
|
||||||
CCVER="gcc `$CC --version | grep '[[0-9]]\.[[0-9]]' | sed -e 's/[[^0-9]]*\([[0-9.]]*\).*/\1/'`"
|
CCVER="gcc `$CC --version | grep '[[0-9]]\.[[0-9]]' | sed -e 's/.*(GCC)//' -e 's/[[^0-9]]*\([[0-9.]]*\).*/\1/'`"
|
||||||
set $CCVER
|
set $CCVER
|
||||||
IFS="."
|
IFS="."
|
||||||
set $2
|
set $2
|
||||||
|
|
Loading…
Reference in a new issue