Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Aug 2010 07:39:06 +0400
From:      Anonymous <swell.k@gmail.com>
To:        Robert Bonomi <bonomi@mail.r-bonomi.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Setting Debug flag in /etc/make.conf
Message-ID:  <86mxt4pdph.fsf@gmail.com>
In-Reply-To: <201008021646.o72Gk9Nk001750@mail.r-bonomi.com> (Robert Bonomi's message of "Mon, 2 Aug 2010 11:46:09 -0500 (CDT)")
References:  <201008021646.o72Gk9Nk001750@mail.r-bonomi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Robert Bonomi <bonomi@mail.r-bonomi.com> writes:

>> I have been having problems with several different programs lately.
>> Would there be any serious drawback to simply setting: "WITH_DEBUG= "
>> in the /etc/make.conf file to force everything I build/rebuild to be
>> built with debug symbols? I am assuming that I can simply place that
>> flag in the make.conf file. Do I have to also give it a value; i.e "=1"
>> or "=yes" also?
>>
>
> What's wrong with the traditional way of doing this -- i.e.,  setting the 
> environment variable CFLAGS to  -g   befoe your start make-inthings?

Because you need to define empty STRIP, too. OTOH, setting WITH_DEBUG or
DEBUG_FLAGS does this for you.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86mxt4pdph.fsf>