Date: Sun, 01 Aug 2010 16:25:28 +0400 From: Anonymous <swell.k@gmail.com> To: Jerry <freebsd.user@seibercom.net> Cc: freebsd-questions@freebsd.org Subject: Re: Setting Debug flag in /etc/make.conf Message-ID: <86lj8qzfif.fsf@gmail.com> In-Reply-To: <20100801072824.0a3989bf@scorpio> (Jerry's message of "Sun, 1 Aug 2010 07:28:24 -0400") References: <20100801072824.0a3989bf@scorpio>
next in thread | previous in thread | raw e-mail | index | archive | help
(resending, previous mail didn't show up in the list archive)
Jerry <freebsd.user@seibercom.net> writes:
> I have been having problems with several different programs lately.
> Would there be any serious drawback to simply setting: "WITH_DEBUG= "
You'd lose `-O2' compiler-specific optimization. If you want to retain
it use DEBUG_FLAGS, e.g.
DEBUG_FLAGS = -ggdb
CFLAGS += ${DEBUG_FLAGS}
Ports that build using bsdmake don't really need the second line as well
as buildworld.
> 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?
Besides symbols some ports enable compile-time debugging and disable
optimization using WITH_DEBUG ifdef that may impact performance.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86lj8qzfif.fsf>
