Commit 632de9e4 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

configure.ac: Don't use -O3 if debug is enabled.

parent f2db40e4
...@@ -988,7 +988,7 @@ AC_CACHE_CHECK([if \$CC accepts -O3], ...@@ -988,7 +988,7 @@ AC_CACHE_CHECK([if \$CC accepts -O3],
[ac_cv_c_o3], [ac_cv_c_o3],
[CFLAGS="${CFLAGS_save} -O3" [CFLAGS="${CFLAGS_save} -O3"
AC_TRY_COMPILE([],,ac_cv_c_o3=yes, ac_cv_c_o3=no)]) AC_TRY_COMPILE([],,ac_cv_c_o3=yes, ac_cv_c_o3=no)])
if test "${ac_cv_c_o3}" != "no"; then if test "${ac_cv_c_o3}" != "no" -a "x${enable_debug}" = "xno"; then
CFLAGS_OPTIM_SPEED="${CFLAGS_OPTIM_SPEED} -O3" CFLAGS_OPTIM_SPEED="${CFLAGS_OPTIM_SPEED} -O3"
else else
AC_CACHE_CHECK([if \$CC accepts -O2], AC_CACHE_CHECK([if \$CC accepts -O2],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment