Subject: Re: Building debuging libraries?
To: J.T. Conklin <>
From: Simon J. Gerraty <>
List: current-users
Date: 05/14/1995 12:03:11
> > What is the `correct' way to build debuging versions (ie with -g)
> > of the libraries?
> I usually override CC.  ie. make CC="gcc -g"

I've found I get the best results by modifying such that it
skips the @${LD} -x -r ${.TARGET bit when making plain .o targets.
Without this all local symbols are stripped which makes tracing into
libraries less useful.  I don't bother with debugging versions of
shared or profiled libs.

While I was at it I made the default CFLAGS in

CFLAGS=            -O2 ${PIPE} ${DBG}

and I just add DBG=-g when compiling libs.