forked from mia/Aegisub
merge r4007 (optimisation flag fix.)
Originally committed to SVN as r4023.
This commit is contained in:
parent
73ab47f8ec
commit
113ae0cd6d
1 changed files with 7 additions and 3 deletions
|
@ -277,10 +277,14 @@ if test "$enable_compiler_flags" != "no"; then
|
||||||
AC_CXX_FLAG([-pipe])
|
AC_CXX_FLAG([-pipe])
|
||||||
|
|
||||||
# -O* messes with debugging.
|
# -O* messes with debugging.
|
||||||
if test "$enable_debug" != "yes"; then
|
if test "$enable_debug" = "yes"; then
|
||||||
AC_C_FLAG([-O2])
|
opt_flag="-O0"
|
||||||
AC_CXX_FLAG([-O2])
|
else
|
||||||
|
opt_flag="-O2"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
AC_C_FLAG([$opt_flag])
|
||||||
|
AC_CXX_FLAG([$opt_flag])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue