On Thursday 19 January 2006 18:17, Olivier Crete wrote: > On Thu, 2006-19-01 at 17:56 -0500, Mike Frysinger wrote: > > - 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...
then we'll deal with that ... we're trying to debug bad code, not bad code generation > > - 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... why ? -fomit-frame-pointer is only used with -O whenever it doesnt interfere with debugging ... in other words, -O on x86 will not imply -fomit-framer-pointer and as noted, x86_64 doesnt suck like x86, so this isnt an issue for amd64 :) -mike -- gentoo-dev@gentoo.org mailing list