configure.ac: use -fno-omit-frame-pointer when available

Austin English austinenglish at gmail.com
Tue Oct 18 14:17:37 CDT 2011


Brought to you by the keeping Focht happy department.

Fixes http://bugs.winehq.org/show_bug.cgi?id=28753

-- 
-Austin
-------------- next part --------------
diff --git a/configure.ac b/configure.ac
index 5a9fd2b..d063aa3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1683,6 +1683,8 @@ then
   WINE_TRY_CFLAGS([-Wtype-limits])
   WINE_TRY_CFLAGS([-Wunused-but-set-parameter])
   WINE_TRY_CFLAGS([-Wwrite-strings])
+  dnl gcc-4.6+ omits frame pointers by default, breaking some copy protections
+  WINE_TRY_CFLAGS([-fno-omit-frame-pointer])
 
   dnl Check for noisy string.h
   saved_CFLAGS="$CFLAGS"


More information about the wine-patches mailing list