From owner-freebsd-current@FreeBSD.ORG Thu Feb 7 18:23:00 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id F1F4D774 for ; Thu, 7 Feb 2013 18:23:00 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id CDB912BE for ; Thu, 7 Feb 2013 18:23:00 +0000 (UTC) Received: from pakbsde14.localnet (unknown [38.105.238.108]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 355E2B918; Thu, 7 Feb 2013 13:23:00 -0500 (EST) From: John Baldwin To: freebsd-current@freebsd.org Subject: Re: compiling libc and libthr with debugging? Date: Thu, 7 Feb 2013 13:20:16 -0500 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p22; KDE/4.5.5; amd64; ; ) References: <20130207181441.GA58987@troutmask.apl.washington.edu> In-Reply-To: <20130207181441.GA58987@troutmask.apl.washington.edu> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201302071320.17136.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Thu, 07 Feb 2013 13:23:00 -0500 (EST) Cc: Steve Kargl 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:23:01 -0000 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. -- John Baldwin