On Mon, Aug 13, 2012 at 2:29 PM, Eric Pouech eric.pouech@orange.fr wrote:
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
A+
diff --git a/configure.ac b/configure.ac index 4bd43d1..2624dc1 100644 --- a/configure.ac +++ b/configure.ac @@ -236,6 +236,12 @@ then AC_SUBST(TARGETFLAGS,"-b $host_alias $TARGETFLAGS") fi
+dnl Check the debug format (force pure dwarf-2 debug format until we correctly support other versions) +tmp_cflags=$CFLAGS +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 AC_CHECK_PROGS(FLEX,flex,none) if test "$FLEX" = "none"
diff --git a/configure.ac b/configure.ac index 4bd43d1..c80fd8a 100644 --- a/configure.ac +++ b/configure.ac @@ -1746,6 +1746,8 @@ then WINE_TRY_CFLAGS([-Wtype-limits]) WINE_TRY_CFLAGS([-Wunused-but-set-parameter]) WINE_TRY_CFLAGS([-Wwrite-strings]) + WINE_TRY_CFLAGS([-gdwarf-2]) + WINE_TRY_CFLAGS([-gstrict-dwarf])
dnl gcc-4.6+ omits frame pointers by default, breaking some copy protections case $host_cpu in
would be simpler, unless I'm missing something.