]> git.sesse.net Git - vlc/commitdiff
configure: Use fno-omit-frame-pointer with --enable-release on Mac OS X, as we are...
authorPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 17 Sep 2008 20:30:18 +0000 (22:30 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Wed, 17 Sep 2008 20:49:01 +0000 (22:49 +0200)
configure.ac

index 0f923d318b29601b79a8d04c60da76f0b5ffd3f0..dd9b4f1529a168b58e9e1320c4b315311cfacb10 100644 (file)
@@ -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