Why does configure.developer use -gstabs in Samba3?

Tim Potter tpot at samba.org
Mon Apr 10 04:48:43 GMT 2006


On Mon, 2006-04-10 at 14:29 +1000, James Peach wrote:
> Hi all,
> 
> Is there a good reason why configure.developer in Samba3 uses
> "-gstabs"? Would a simple "-g" be a sufficient replacement?

A particular version of gcc 3.x introduced support for the dwarf-2
debugging format which includes lots of debug info for cpp macros.  This
blew out the size of binaries built with plain -g to hundreds of
megabytes instead of the much more reasonable tens of megabytes.  (-:

Using -gstabs forces gcc to use the older format which doesn't allow cpp
macro debugging but produces much smaller debug binaries.


Tim.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/samba-technical/attachments/20060410/ee4650c1/attachment.bin


More information about the samba-technical mailing list