Date: Wed, 26 Mar 2003 14:48:24 -0600 From: Dan Nelson <dnelson@allantgroup.com> To: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: How to produce debugging symbols? Message-ID: <20030326204824.GF31787@dan.emsphone.com> In-Reply-To: <20030326203815.GA40945@bsdsi.homeunix.com> References: <20030326200449.GB967@bsdsi.homeunix.com> <20030326201149.GE31787@dan.emsphone.com> <20030326203815.GA40945@bsdsi.homeunix.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Mar 26), Martin Moeller said: > * Dan Nelson <dnelson@allantgroup.com> [26.03.03 21:13]: If it's your > > program, recompile and link with the -g commandline switch added. > > If it's a base FreeBSD program (or port), edit the Makefile and add > > a line reading "DEBUG_FLAGS=-g" (this will compile with -g and also > > not strip the debugging symbols when the binary gets installed). > > Thanks for your response, Dan. > I tried that out with gnuls package in the ports and added > DEBUG_FLAGS=-g > to /usr/ports/misc/gnuls/Makefile > > Without any success, though. Ok, it looks like the ports tree doesn't fully use DEBUG_FLAGS (it does listen to it when determining whether to strip binaries or not though). Try adding -g to the CFLAGS= line in /etc/make.conf . -- Dan Nelson dnelson@allantgroup.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030326204824.GF31787>