[PATCH 5/6] configure: allow picking up dwarf version for compilation from command line

Jacek Caban jacek at codeweavers.com
Mon Oct 4 08:10:48 CDT 2021


On 10/3/21 2:25 PM, Eric Pouech wrote:
>
> what could be done:
>
>
> DEBUG (when specified)
>
> - used to choose a debug format for compiling wine
>
> - I'd suggest a more drastic approach than what we have today: just 
> append DEBUG content as it is to EXTRACFLAGS. this gives total 
> flexibility on what we may want to experiment ; note: it will require 
> using -gcodeview (not -gpdb nor pdb) in CROSSDEBUG


There is one more reason for CROSSDEBUG, which is CROSSDEBUG=split (or 
split-dwarf), causing build system to create separated symbol files for 
cross compiled modules. This does not translate so well to EXTRACFLAGS, 
it's handled by makedep. We currently don't do similar things for ELF 
files. The common practice in Unix world seems to be splitting 
executables at install time. Given additional portability challenges, 
I'm not sure if providing an equivalent of CROSSDEBUG=split for ELFs is 
worth it.


How about an easier solution: we could skip appending -gdwarf-2 if any 
of -gdwarf-[234] options are provided in CFLAGS.


Thanks,

Jacek




More information about the wine-devel mailing list