mirror of
https://git.code.sf.net/p/quake/quake2forge
synced 2024-12-13 06:01:19 +00:00
cope with gcc 3.1
This commit is contained in:
parent
408470cce5
commit
c1ec5e71e6
1 changed files with 11 additions and 1 deletions
12
configure.in
12
configure.in
|
@ -317,7 +317,17 @@ AC_ARG_ENABLE(opt,
|
|||
if test "x$USE_OPT" = "xyes"; then
|
||||
case "${host}" in
|
||||
i?86-*-*)
|
||||
OPT_CFLAGS="$OPT_CFLAGS -malign-loops=2 -malign-jumps=2 -malign-functions=2"
|
||||
AC_MSG_CHECKING(whether -falign-functions works)
|
||||
save_CFLAGS="$CFLAGS"
|
||||
CFLAGS="-falign-functions"
|
||||
AC_TRY_COMPILE(
|
||||
[],
|
||||
[],
|
||||
OPT_CFLAGS="$OPT_CFLAGS -falign-loops=2 -falign-jumps=2 -falign-functions=2"
|
||||
AC_MSG_RESULT(yes),
|
||||
OPT_CFLAGS="$OPT_CFLAGS -malign-loops=2 -malign-jumps=2 -malign-functions=2"
|
||||
AC_MSG_RESULT(no),
|
||||
)
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue