From owner-freebsd-questions@FreeBSD.ORG Fri Dec 8 16:50:13 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 17BEA16A643 for ; Fri, 8 Dec 2006 16:50:13 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id E5C3D43C9D for ; Fri, 8 Dec 2006 16:49:13 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.6/8.13.8) id kB8Go9AH094296; Fri, 8 Dec 2006 10:50:09 -0600 (CST) (envelope-from dan) Date: Fri, 8 Dec 2006 10:50:09 -0600 From: Dan Nelson To: Micah Message-ID: <20061208165009.GC69299@dan.emsphone.com> References: <457991AB.8020208@ywave.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <457991AB.8020208@ywave.com> X-OS: FreeBSD 6.2-PRERELEASE X-message-flag: Outlook Error User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freeBSD Subject: Re: Building system libs with debugging symbols X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Dec 2006 16:50:13 -0000 In the last episode (Dec 08), Micah said: > The gnome maintainers need me to rebuild libpthread and libc with > debugging symbols in order to get a more complete stack trace of a > firefox crash. How exactly do I go about doing that, since those libs > are part of world? Do I have to rebuild world or can I just rebuild > those libs? What mods to make.conf or environmental variables do I > need to set? I usually do this by setting DEBUG_FLAGS=-g in src/lib/blah/Makefile and just doing the make depend && make && make install routine in that one directory. It's perfectly safe to do this if your source tree matches your installed system. Doing it with newer sources is trickier since you may have to manually update includes or other dependant libraries, and building the whole world is usually easier. -- Dan Nelson dnelson@allantgroup.com