On 5/1/06, Graham Murray <[EMAIL PROTECTED]> wrote:
In the 'debugging' howto referenced in this week's GWN it mentions the
CFLAGS and setting FEATURES to either nostrip or splitdebug. However,
there is also a global 'debug' USE flag. Should this also be set if
setting CFLAGS to include -g and FEATURES splitdebug in
/etc/make.conf?
Generally I would answer 'no', but this depends upon how much
debugging you want to do. The splitdebug setting is sufficient to get
good stack traces in the event of a program crash.
The debug USE flag will do different things for different packages.
But it generally falls into one of two categories:
1. Enable extra logging of the package. For example, emerging wine
without debug will disable call tracing, making it difficult to file
bug reports or figure out what native vs windows dlls you should be
using for a particular program.
2. Enable extra checks in the code. Things like assertions, type
checks, and array boundary checks. These extra checks can have a
significant impact on performance. The glib and gtk packages fall
into this category.
-Richard
--
[email protected] mailing list