This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC --enable-debugging


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.

I don't know if they build that version with any other switches besides -g.


Phil

-- 
I would therefore like to posit that computing's central challenge, viz. "How
not to make a mess of it," has /not/ been met.
                                                 - Edsger Dijkstra, 1930-2002


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]