Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 May 2007 19:00:44 -0400
From:      Gerard <gerard@seibercom.net>
To:        User Questions <freebsd-questions@freebsd.org>
Subject:   Re: Build with debug symbols
Message-ID:  <20070521185629.22CA.GERARD-SEIBERT@seibercom.net>
In-Reply-To: <20070521201215.GA3642@kobe.laptop>
References:  <509628.88605.qm@web34408.mail.mud.yahoo.com> <20070521201215.GA3642@kobe.laptop>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday May 21, 2007 at 04:12:15 (PM) Giorgos Keramidas wrote:


> > If I build a port with debugging information; i.e.
> > 'make -g', is that debugging information stripped out
> > when the program is installed? If so, is there anyway
> > to prevent this from happening?
> > 
> > I have been attempting to build 'claws-mail' with
> > debugging information; however, when I run the program
> > under 'gdb' that information does not appear to be
> > present. I heard that there was a 'STRIP' flag I could
> > set; however, I cannot find any definitive information
> > regarding it.
> 
>     # env DEBUG_FLAGS='-g' CFLAGS='' ...
> 
> The DEBUG_FLAGS option turns off symbol stripping.

Would that also work if "DEBUG_FLAGS='g'" were placed in the
/etc/make.conf file or does it have to be placed in the environment prior
to building the port. I assume that the '-g' has to still be placed on
the 'make' command when doing the actual build.


-- 
Gerard



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070521185629.22CA.GERARD-SEIBERT>