Have there been any problems with Wine on GCC 4.7?
Austin English
austinenglish at gmail.com
Mon Aug 13 14:39:16 CDT 2012
On Mon, Aug 13, 2012 at 2:29 PM, Eric Pouech <eric.pouech at 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.
--
-Austin
More information about the wine-devel
mailing list