On Thu, 2006-19-01 at 17:56 -0500, Mike Frysinger wrote:
> - USE=debug *never* changes CFLAGS or LDFLAGS or what have you, it *only* 
> enables additional runtime code (such as assert()'s or helpful debug 
> output) ... if you're confused by what i mean, run `USE=debug emerge nano` 
> and then run `nano`

This is so overdue..
+1

> - if "debug-build" is in FEATURES, then the following happens:
>  * auto sets CFLAGS to DEBUG_CFLAGS, LDFLAGS to DEBUG_LDFLAGS, CXXFLAGS to 
> DEBUG_CXXFLAGS (and in the future, we can add more variables as the need 
> comes up)

What about: CFLAGS="${CFLAGS} ${DEBUG_CFLAGS}" .. otherwise bugs that
only appear after certain GCC optmisations may go away... 

> - we will set sane debug defaults in the base profile:
>  * DEBUG_CFLAGS=DEBUG_CXXFLAGS="-O -g"

I'd propose "-fno-omit-frame-pointer -ggdb" for x86/amd64 and "-g" for
default... 


-- 
Olivier Crête
[EMAIL PROTECTED]
Gentoo Developer


-- 
[email protected] mailing list

Reply via email to