Setting Debug flag in /etc/make.conf

Anonymous swell.k at
Tue Aug 3 03:39:18 UTC 2010

Robert Bonomi <bonomi at> 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.

More information about the freebsd-questions mailing list