From owner-freebsd-current@FreeBSD.ORG Thu Feb 7 18:43:40 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 12FBCD5B; Thu, 7 Feb 2013 18:43:40 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) by mx1.freebsd.org (Postfix) with ESMTP id D47DB65A; Thu, 7 Feb 2013 18:43:39 +0000 (UTC) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.14.5/8.14.5) with ESMTP id r17IhdCB059116; Thu, 7 Feb 2013 10:43:39 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.14.5/8.14.5/Submit) id r17Ihdc5059115; Thu, 7 Feb 2013 10:43:39 -0800 (PST) (envelope-from sgk) Date: Thu, 7 Feb 2013 10:43:39 -0800 From: Steve Kargl To: John Baldwin Subject: Re: compiling libc and libthr with debugging? Message-ID: <20130207184339.GA59000@troutmask.apl.washington.edu> References: <20130207181441.GA58987@troutmask.apl.washington.edu> <201302071320.17136.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201302071320.17136.jhb@freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Feb 2013 18:43:40 -0000 On Thu, Feb 07, 2013 at 01:20:16PM -0500, John Baldwin wrote: > On Thursday, February 07, 2013 1:14:41 pm Steve Kargl wrote: > > What's the preferred method for compiling libc > > and libthr with debugging enable? > > I just do: > > cd /path/to/src/lib/libc > make clean > make DEBUG_FLAGS=-g > > Then when I run the binary I use a custom LD_LIBRARY_PATH that points at the > directory holding the custom libc. > Thanks. I give it a try, but I'll install the libraries at lesat for a few days. -- Steve