Subject: Re: How can I enable DEBUG in bmake
To: Huajian.Luo <Huajian.Luo@Sun.Com>
From: Juan RP <firstname.lastname@example.org>
Date: 08/09/2005 05:31:00
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):
CFLAGS+=-march=athlon-xp -pipe -O3
Later, you can use "bmake DEBUG=1" or "bmake FOO=1"...