[PATCH 1/2] configure: Prefer stabs debug info on Mac OS.

Charles Davis cdavis5x at gmail.com
Tue Sep 11 10:11:29 CDT 2012


From: Charles Davis <cdavis at mymail.mines.edu>

For now, until dbghelp grows better support for finding DWARF-2 symbols
on Mac OS.
---
 configure.ac | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index 528ee90..9a15200 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1749,11 +1749,14 @@ then
   WINE_TRY_CFLAGS([-Wunused-but-set-parameter])
   WINE_TRY_CFLAGS([-Wwrite-strings])
 
-  dnl Default to dwarf-2 debug info
+  dnl On Darwin, prefer stabs; everywhere else, default to dwarf-2 debug info
   for ac_flag in $CFLAGS; do
     case $ac_flag in
-      -g) WINE_TRY_CFLAGS([-gdwarf-2])
-          WINE_TRY_CFLAGS([-gstrict-dwarf]) ;;
+      -g) case $host_os in
+            darwin*) WINE_TRY_CFLAGS([-gstabs+]) ;;
+            *) WINE_TRY_CFLAGS([-gdwarf-2])
+               WINE_TRY_CFLAGS([-gstrict-dwarf]) ;;
+          esac ;;
     esac
   done
 
-- 
1.7.12




More information about the wine-patches mailing list