Subject: Re: How can I enable DEBUG in bmake
To: Juan RP <firstname.lastname@example.org>
From: Huajian.Luo <Huajian.Luo@Sun.COM>
Date: 08/09/2005 11:37:29
Juan RP wrote:
> 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
> .elif defined(ATHLON)
> CFLAGS+=-march=athlon-xp -pipe -O3
> Later, you can use "bmake DEBUG=1" or "bmake FOO=1"...
Yes, It works, thanks your very much. but I think that pkgsrc should add this
feature as FreeBSD do, add these targets to some mk file will make user's life