This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: RFC --enable-debugging
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Fri, 1 Nov 2002 10:07:43 -0600
- Subject: Re: RFC --enable-debugging
- References: <u8hef89r7o.fsf@gromit.moeb><20021029161117.A21995@disaster.jaj.com><20021031174957.A15579@disaster.jaj.com><20021031194119.548d7555.bkoz@redhat.com><m365vgyb38.fsf@soliton.integrable-solutions.net><20021031224637.A18172@disaster.jaj.com><m3of98w1sg.fsf@soliton.integrable-solutions.net>
> 1) Is there any automated way to have the compiler pick the debug
> library when a program is linked with -g?
Don't think so. I think the (prefix)/lib/debug is pretty standard. I
know glibc uses it, and as Phil indicated, Debian has already started to
do this with libstdc++.
All I'm looking for is a way to easily build a debug C++ library. Right
now, I have to blow away the normal (optimized and
not-useful-with-a-symbolic-debugger) libstdc++ binary, and re-make with
CXXFLAGS="-g -O2".
> 2) Does the compiler skip the debug version if -g is not given?
The compiler would skip the debug version entirely unless -L was given
to it.
> 3) Not everyone can install under /usr/lib/debug nor even desirable
> in all circumstance.
I was thinking $prefix/lib/debug, not /usr/lib. Does that make more sense?
-benjamin