tags 683103 pending kthxbye On Wed, Nov 14, 2012 at 10:55:24PM +0100, Daniel Stenberg wrote: > On Tue, 13 Nov 2012, Alessandro Ghedini wrote: > > >IIRC that was added to enable debug symbols (i.e. what's shipped in the -dbg > >package). See #648902 [0] and LP#855291 [1]. > > > >Even explicitly passing -g to ./configure CFLAGs doesn't work: > > I'm sorry, but I don't understand why curl and libcurl need to > "suffer" because a -dbg package needs something. Also, I don't know > what the -dbg package needs or doesn't need so I can't comment on > what works or not for that build.
-dbg packages provide debug symbols (those used by e.g. gdb to generate backtraces, or by valgrind to locate memory leaks etc...) and are used to debug software crashes and the like. I've just looked into this, and AFAICT when --enable-debug is not used, the -g0 compiler flag is passed to the compiler which means that no debug symbols are left in the library, which in turn leaves the -dbg package with nothing and even if the -g flag is passed (as part of custom CFLAGS) to ./configure it gets ignored. So what would be needed is that the -g0 is not passed anymore. I've just prepared a Debian-specific patch for this and disabled the --enable-debug flag and it looks like it's working, so from the next upload there won't be --enable-debug anymore. Cheers -- perl -E '$_=q;$/= @{[@_]};and s;\S+;<inidehG ordnasselA>;eg;say~~reverse'
signature.asc
Description: Digital signature