compile a port with debugging symbols?

Robert Noland rnoland at FreeBSD.org
Thu Nov 26 17:42:09 UTC 2009


On Thu, 2009-11-26 at 18:01 +0100, Rene Ladan wrote:
> 2009/11/26 Michael W. Lucas <mwlucas at blackhelicopters.org>:
> > Hi,
> >
> > Is there an approved/offical way to compile a port with debugging
> > symbols?
> >
> > Habitually I've just run "make configure" and then edited Makefiles.
> > But I'm sure that's not what you folks recommend users do...
> >
> Just adding -g to CFLAGS in /etc/make.conf should work...

A lot of times, the binaries will still be stripped.  Many ports work
correctly if you define WITH_DEBUG="yes" however.

robert.

> Regards,
> Rene
> _______________________________________________
> freebsd-ports at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"
-- 
Robert Noland <rnoland at FreeBSD.org>
FreeBSD



More information about the freebsd-ports mailing list