mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-19 17:01:46 +00:00
make sure gcc likes the optimisation options. Unfortunatly, if even one causes
a problem, all will be lost, but at least qf will compile.
This commit is contained in:
parent
c60d333610
commit
17b6e171fd
1 changed files with 7 additions and 1 deletions
|
@ -1019,8 +1019,14 @@ if test "x$optimize" = xyes; then
|
|||
if test "x$MORE_CFLAGS" = x; then
|
||||
AC_MSG_RESULT(no)
|
||||
else
|
||||
AC_MSG_RESULT(yes)
|
||||
save_CFLAGS="$CFLAGS"
|
||||
CFLAGS="$CFLAGS $MORE_CFLAGS"
|
||||
AC_TRY_COMPILE(
|
||||
[],
|
||||
[],
|
||||
AC_MSG_RESULT(yes),
|
||||
CFLAGS="$save_CFLAGS"
|
||||
)
|
||||
fi
|
||||
else
|
||||
CFLAGS=-O2
|
||||
|
|
Loading…
Reference in a new issue