Commit 01fe803c authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

configure: Use fno-omit-frame-pointer with --enable-release on Mac OS X, as we...

configure: Use fno-omit-frame-pointer with --enable-release on Mac OS X, as we are collecting crash log.
parent 39a24018
......@@ -1037,7 +1037,12 @@ AC_CACHE_CHECK([if \$CC accepts -fomit-frame-pointer],
[CFLAGS="${CFLAGS_save} -fomit-frame-pointer"
AC_TRY_COMPILE([],,ac_cv_c_omit_frame_pointer=yes, ac_cv_c_omit_frame_pointer=no)])
if test "${ac_cv_c_omit_frame_pointer}" != "no"; then
if test "${SYS}" != "darwin"; then
CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fomit-frame-pointer"
else
dnl On darwin we explicitely disable it.
CFLAGS_OPTIM_NODEBUG="${CFLAGS_OPTIM_NODEBUG} -fno-omit-frame-pointer"
fi
fi
dnl Check for Darwin plugin linking flags
......
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