mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-29 20:20:43 +00:00
more problems pointed out by raorn
This commit is contained in:
parent
9d0d8c49e7
commit
7db3eaeefe
1 changed files with 8 additions and 10 deletions
18
configure.ac
18
configure.ac
|
@ -116,15 +116,6 @@ fi
|
|||
AC_CHECK_LIB(l, main, LEXLIB="-ll", AC_CHECK_LIB(fl, main, LEXLIB="-lfl"))
|
||||
AC_SUBST(LEXLIB)
|
||||
|
||||
set $CC
|
||||
if test "$1" = gcc; then
|
||||
shift
|
||||
args="$*"
|
||||
AC_MSG_CHECKING(for gcc version)
|
||||
CCVER="gcc `gcc --version`"
|
||||
AC_MSG_RESULT($CCVER)
|
||||
fi
|
||||
|
||||
dnl ==================================================================
|
||||
dnl Checks for system services
|
||||
dnl ==================================================================
|
||||
|
@ -1189,6 +1180,13 @@ if test "x$optimize" = xyes; then
|
|||
AC_MSG_RESULT(yes)
|
||||
BUILD_TYPE="$BUILD_TYPE Optimize"
|
||||
if test "x$GCC" = xyes; then
|
||||
set $CC
|
||||
shift
|
||||
args="$*"
|
||||
AC_MSG_CHECKING(for gcc version)
|
||||
CCVER="gcc `gcc --version`"
|
||||
AC_MSG_RESULT($CCVER)
|
||||
echo $CCVER
|
||||
CFLAGS="$CFLAGS -O3 -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations"
|
||||
AC_ARG_ENABLE(strict-aliasing,
|
||||
[ --enable-strict-aliasing enable the -fstrict-aliasing ooption of gcc])
|
||||
|
@ -1202,7 +1200,7 @@ if test "x$optimize" = xyes; then
|
|||
if test $1 -ge 3; then
|
||||
CFLAGS="$CFLAGS -fstrict-aliasing"
|
||||
else
|
||||
if test $1 = 2 -a $ $2 = 96; then
|
||||
if test $1 = 2 -a $2 = 96; then
|
||||
CFLAGS="$CFLAGS -fno-strict-aliasing"
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue