Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: tool building



On Thu, Jan 21, 2010 at 11:08:30PM +0900, Masao Uebayashi wrote:
> > I thought I would quickly edit tools/groff/Makefile, and throw in a
> > CFLAGS+="-g -O0"
> > CXXFLAGS+="-g -O0"
> > 
> > I see that this no longer works, but there is a
> > CONFIGURE_ARGS
> > and configure is run - how does that work?
> > (I looked in /usr/src/share/mk - are we a "gnuhost" for 
> > ../Makefile.gnuhost?)
> > (also tried putting the above in /etc/mk.conf)
> > 
> > Simply put, what is an easy way of getting -g in?
> > (Solving the core dump is a bonus ;-) )
> 
> HOST_CFLAGS?

That worked thanks

HOST_CFLAGS+=-g -O0
HOST_CXXFLAGS+=-g -O0
in /etc/mk.conf, with no quotes.

Also just had a go with LDSTATIC=-static, but couldn't find the equivalent...

Cheers,

Patrick


Home | Main Index | Thread Index | Old Index