[PATCH] configure.ac: allow expressing dwarf version in CFLAGS and CROSSCFLAGS
Jacek Caban
jacek at codeweavers.com
Mon Nov 1 10:30:37 CDT 2021
Hi Eric,
Sorry for the delay.
On 10/4/21 6:37 PM, Eric Pouech wrote:
> + ac_debug_format_seen=
> if test -z "$CROSSDEBUG"
> then
> for ac_flag in $CROSSCFLAGS; do
> case $ac_flag in
> - -gdwarf*) CROSSDEBUG=dwarf ;;
> + -gdwarf-*) ac_debug_format_seen=yes ;;
> + -g) ac_debug_format_seen=${ac_debug_format_seen:-default} ;;
> -gcodeview) CROSSDEBUG=pdb ;;
> - -g) CROSSDEBUG=${CROSSDEBUG:-dwarf} ;;
> esac
> done
> fi
> case $CROSSDEBUG in
> - *dwarf) WINE_TRY_CROSSCFLAGS([-gdwarf-2])
> - WINE_TRY_CROSSCFLAGS([-gstrict-dwarf]) ;;
> + *dwarf) ac_debug_format_seen=default ;;
> pdb) WINE_TRY_CROSSCFLAGS([-gcodeview]) ;;
> esac
> + if test "x$ac_debug_format_seen" = "xdefault"
> + then
> + WINE_TRY_CROSSCFLAGS([-gdwarf-2])
> + WINE_TRY_CROSSCFLAGS([-gstrict-dwarf])
> + fi
I think that this will not work for PDBs: when CROSSCFLAGS="-g
-gcodeview", we'd try to append "-gdwarf-2 -gstrict-dwarf".
Thanks,
Jacek
More information about the wine-devel
mailing list