1 |
On Thu, 2006-19-01 at 17:56 -0500, Mike Frysinger wrote: |
2 |
> - USE=debug *never* changes CFLAGS or LDFLAGS or what have you, it *only* |
3 |
> enables additional runtime code (such as assert()'s or helpful debug |
4 |
> output) ... if you're confused by what i mean, run `USE=debug emerge nano` |
5 |
> and then run `nano` |
6 |
|
7 |
This is so overdue.. |
8 |
+1 |
9 |
|
10 |
> - if "debug-build" is in FEATURES, then the following happens: |
11 |
> * auto sets CFLAGS to DEBUG_CFLAGS, LDFLAGS to DEBUG_LDFLAGS, CXXFLAGS to |
12 |
> DEBUG_CXXFLAGS (and in the future, we can add more variables as the need |
13 |
> comes up) |
14 |
|
15 |
What about: CFLAGS="${CFLAGS} ${DEBUG_CFLAGS}" .. otherwise bugs that |
16 |
only appear after certain GCC optmisations may go away... |
17 |
|
18 |
> - we will set sane debug defaults in the base profile: |
19 |
> * DEBUG_CFLAGS=DEBUG_CXXFLAGS="-O -g" |
20 |
|
21 |
I'd propose "-fno-omit-frame-pointer -ggdb" for x86/amd64 and "-g" for |
22 |
default... |
23 |
|
24 |
|
25 |
-- |
26 |
Olivier CrĂȘte |
27 |
tester@g.o |
28 |
Gentoo Developer |
29 |
|
30 |
|
31 |
-- |
32 |
gentoo-dev@g.o mailing list |