[vlc-devel] commit: configure: Use fno-omit-frame-pointer with --enable-release on Mac OS X, as we are collecting crash log. (Pierre d'Herbemont )

git version control git at videolan.org
Wed Sep 17 22:47:14 CEST 2008


vlc | branch: 0.9-bugfix | Pierre d'Herbemont <pdherbemont at videolan.org> | Wed Sep 17 22:30:18 2008 +0200| [01fe803c8ceb62980a952c4c3866aa7a242f932c] | committer: Pierre d'Herbemont 

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

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=01fe803c8ceb62980a952c4c3866aa7a242f932c
---

 configure.ac |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index 51d2f9b..b0eab06 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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




More information about the vlc-devel mailing list