From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 30 17:00:27 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3877010656AB for ; Tue, 30 Mar 2010 17:00:27 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 932DF8FC16 for ; Tue, 30 Mar 2010 17:00:26 +0000 (UTC) X-Spam-Status: No X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-2.88, required 5, autolearn=not spam, ALL_TRUSTED -1.00, BAYES_00 -1.90, T_MIME_NO_TEXT 0.01, T_TVD_MIME_NO_HEADERS 0.01) X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-ID: o2UGfwE4007268 Received: from kobe.laptop (ppp-94-64-219-161.home.otenet.gr [94.64.219.161]) (authenticated bits=128) by igloo.linux.gr (8.14.3/8.14.3/Debian-9.1) with ESMTP id o2UGfwE4007268 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 30 Mar 2010 19:42:04 +0300 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.4/8.14.4) with ESMTP id o2UGfrVp003055 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 30 Mar 2010 19:41:53 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.4/8.14.4/Submit) id o2UGfpl7003049; Tue, 30 Mar 2010 19:41:51 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) From: Giorgos Keramidas To: Alexander Best In-Reply-To: (Alexander Best's message of "Fri, 05 Mar 2010 18:15:33 +0100 (CET)") Date: Tue, 30 Mar 2010 18:48:58 +0300 Message-ID: <874ojx4xp1.fsf@kobe.laptop> References: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Cc: Bruce Cran , freebsd-hackers@freebsd.org Subject: Re: building world with debugging symbols X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Mar 2010 17:00:27 -0000 --=-=-= On Fri, 05 Mar 2010 18:15:33 +0100 (CET), Alexander Best wrote: >> DEBUG_FLAGS=-g > > ahh. thanks for the hint. with DEBUG_FLAGS i was able to build world with > debugging symbols but also managed to keep the bootloader small enough. > > i don't think this option is documented anywhere or is it? It's not documented in the obvious place I'd look for it: the build(7) manpage. Does the following look ok? %%% diff -r 236fcd32a358 share/man/man7/build.7 --- a/share/man/man7/build.7 Sun Mar 28 00:46:10 2010 +0200 +++ b/share/man/man7/build.7 Tue Mar 30 18:48:16 2010 +0300 @@ -24,7 +24,7 @@ .\" .\" $FreeBSD$ .\" -.Dd December 15, 2009 +.Dd March 30, 2010 .Dt BUILD 7 .Os .Sh NAME @@ -311,6 +311,20 @@ should be set as with .Sh ENVIRONMENT Variables that influence all builds include: .Bl -tag -width ".Va MAKEOBJDIRPREFIX" +.It Va DEBUG_FLAGS +Defines a set of debugging flags that will be used to build all userland +binaries under +.Pa /usr/src . +When +.Va DEBUG_FLAGS +is defined, the +.Cm install +and +.Cm installworld +targets install binaries from the current +.Va MAKEOBJDIRPREFIX +without stripping too, so that debugging information is retained in the +installed binaries. .It Va DESTDIR The directory hierarchy prefix where built objects will be installed. If not set, %%% --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkuyHXYACgkQ1g+UGjGGA7beswCgsom3GFlPsoGwcTIGITybhTai Ph4AoMTI8DNXRJc9JP3pYmi1AWMl2HJl =Phl3 -----END PGP SIGNATURE----- --=-=-=--