From owner-freebsd-questions@FreeBSD.ORG Wed Mar 26 12:48:26 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B1AD37B404 for ; Wed, 26 Mar 2003 12:48:26 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC6F343F3F for ; Wed, 26 Mar 2003 12:48:25 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.7/8.12.7) id h2QKmO9E004675 for freebsd-questions@freebsd.org; Wed, 26 Mar 2003 14:48:24 -0600 (CST) (envelope-from dan) Date: Wed, 26 Mar 2003 14:48:24 -0600 From: Dan Nelson To: FreeBSD Questions Message-ID: <20030326204824.GF31787@dan.emsphone.com> References: <20030326200449.GB967@bsdsi.homeunix.com> <20030326201149.GE31787@dan.emsphone.com> <20030326203815.GA40945@bsdsi.homeunix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030326203815.GA40945@bsdsi.homeunix.com> X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-26.5 required=5.0 tests=AWL,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MUTT autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Subject: Re: How to produce debugging symbols? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Mar 2003 20:48:27 -0000 In the last episode (Mar 26), Martin Moeller said: > * Dan Nelson [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