[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:45:54 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Wed Sep 17 22:30:18 2008 +0200| [a8e4962ad1d33780c2f227eb95b47c53c16be654] | 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=a8e4962ad1d33780c2f227eb95b47c53c16be654
---

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

diff --git a/configure.ac b/configure.ac
index 0f923d3..dd9b4f1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1026,7 +1026,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