Have there been any problems with Wine on GCC 4.7?

Eric Pouech eric.pouech at orange.fr
Mon Aug 13 14:29:27 CDT 2012

> In the meantime, I suppose I could enable the -gdwarf-2 compiler option.

yes (but it's a bit more tricky than it sounds)
something like this will do


diff --git a/configure.ac b/configure.ac
index 4bd43d1..2624dc1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -236,6 +236,12 @@ then

+dnl Check the debug format (force pure dwarf-2 debug format until we 
correctly support other versions)
+CFLAGS=`echo $CFLAGS | sed -e 's/-g\\>/-gdwarf-2 -gstrict-dwarf/'`
+AC_LINK_IFELSE([AC_LANG_SOURCE([[int main(int argc, char **argv) { 
return 0; }]])],
+               [], [CFLAGS=$tmp_cflags])
  dnl Check for flex
  if test "$FLEX" = "none"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20120813/76686d94/attachment.html>

More information about the wine-devel mailing list