On Tue, 9 Aug 2005 11:21:13 +0800
"Huajian.Luo" <Huajian.Luo@Sun.Com> wrote:
> Hey, pkg guys
>
> I'm currrently run into a problem that after I bmake the
> chat/irssi on Solaris 10 and it coredumped at startup.
> so I want to compile a debug version to dig into it.
>
> would you please tell me if there any command to make this
> done, like "bmake install -DDEBUG=yes"?
Sure, I use the following on my system (add this into mk.conf):
.ifdef DEBUG
CFLAGS+=-g
.elif defined(ATHLON)
CFLAGS+=-march=athlon-xp -pipe -O3
.else
CFLAGS+=-pipe
.endif
Later, you can use "bmake DEBUG=1" or "bmake FOO=1"...