RFC --enable-debugging
Gabriel Dos Reis
gdr@integrable-solutions.net
Fri Nov 1 05:18:00 GMT 2002
Phil Edwards <phil@jaj.com> writes:
| On Sat, Nov 02, 2002 at 03:11:39AM +0100, Gabriel Dos Reis wrote:
| > Benjamin Kosnik <bkoz@redhat.com> writes:
| >
| > | ...builds libstdc++.so twice. Once as-is, once for debugging. Debugging
| > | options can include CXXFLAGS="-g -O0", perhaps a change to use
| > | malloc-alloc allocators, and perhaps --enable-concept-checks.
| > |
| > | Installed in $prefix/lib/debug/
| > |
| > | Thoughts?
| >
| > How does a naive user (me) easily tell the compiler to look at the
| > "right" place without having to experience unspeakable headache? :-)
|
| Debian already does this. Setting LD_LIBRARY_PATH to search /usr/lib/debug
| before searching the usual places will pick up (among other things)
| a version of libstdc++.so with debugging symbols included.
Let me rephrase my question
1) Is there any automated way to have the compiler pick the debug
library when a program is linked with -g?
2) Does the compiler skip the debug version if -g is not given?
3) Not everyone can install under /usr/lib/debug nor even desirable
in all circumstance.
My questions aren't criticisms.
-- Gaby
More information about the Libstdc++
mailing list