On 27 Mar 2008, at 20:44, Nicolas Williams wrote: > On Thu, Mar 27, 2008 at 07:10:19PM +0100, Mark Phalan wrote: >> Up until recently when I was debugging something I sometimes liked to >> build debug libraries that I could use with dbx. >> For e.g. when building mech_krb5.so.1 I built like this: >> >> CTFCONVERT_O="" CTFMERGE_LIB="" COPTFLAG="-g" COPTFLAG64="-g" make >> install > > I usually do this instead: > > % export STRIPSTABS_KEEP_STABS=1 > % dmake COPTFLAG=-g COPTFLAG64=-g install > > STRIPSTABS_KEEP_STABS is that which tells the ctf tools not to remove > the debug info.
Thanks for the tip, I'll try this too. -M