1 |
On Thursday 19 January 2006 18:17, Olivier Crete wrote: |
2 |
> On Thu, 2006-19-01 at 17:56 -0500, Mike Frysinger wrote: |
3 |
> > - if "debug-build" is in FEATURES, then the following happens: |
4 |
> > * auto sets CFLAGS to DEBUG_CFLAGS, LDFLAGS to DEBUG_LDFLAGS, CXXFLAGS |
5 |
> > to DEBUG_CXXFLAGS (and in the future, we can add more variables as the |
6 |
> > need comes up) |
7 |
> |
8 |
> What about: CFLAGS="${CFLAGS} ${DEBUG_CFLAGS}" .. otherwise bugs that |
9 |
> only appear after certain GCC optmisations may go away... |
10 |
|
11 |
then we'll deal with that ... we're trying to debug bad code, not bad code |
12 |
generation |
13 |
|
14 |
> > - we will set sane debug defaults in the base profile: |
15 |
> > * DEBUG_CFLAGS=DEBUG_CXXFLAGS="-O -g" |
16 |
> |
17 |
> I'd propose "-fno-omit-frame-pointer -ggdb" for x86/amd64 and "-g" for |
18 |
> default... |
19 |
|
20 |
why ? -fomit-frame-pointer is only used with -O whenever it doesnt interfere |
21 |
with debugging ... in other words, -O on x86 will not imply |
22 |
-fomit-framer-pointer |
23 |
|
24 |
and as noted, x86_64 doesnt suck like x86, so this isnt an issue for amd64 :) |
25 |
-mike |
26 |
-- |
27 |
gentoo-dev@g.o mailing list |