RFC --enable-debugging

Gabriel Dos Reis gdr@integrable-solutions.net
Fri Nov 1 13:39:00 GMT 2002


Phil Edwards <phil@jaj.com> writes:

| On Fri, Nov 01, 2002 at 01:25:29PM -0600, Loren James Rittle wrote:
| > In article <20021101100743.48876aba.bkoz@redhat.com> you write:
| > >
| > >>  1) Is there any automated way to have the compiler pick the debug
| > >>     library when a program is linked with -g?
| [...]
| > Notice how one selects a libc based on provided command line
| > arguments.  In that situation, library name was changed based on
| > arguments.  In this case (BTW, I don't know how standard using
| > $prefix/lib/debug really is), you want to effectively add a -L switch
| > based on seeing -g.
| 
| 1)  Re $libdir/debug:  well, it seems to be getting standardized on
| Linux. :-)  I was going to write this last night and got sidetracked:
| how about an optional argument to --enable-debug, specifying the path to
| the debug installation directory?
| 
|     --enable-debug          # same as
|     --enable-debug=debug    # $libdir/debug == $prefix/lib/debug
|     --enable-debug=/foo     # starts with '/' therefore not relative path
|     ???

I think this is confusing.  

If we were to specify an alternate directory, I would prefer

   -enable-debug-dir=

-- Gaby



More information about the Libstdc++ mailing list