From owner-freebsd-stable@FreeBSD.ORG Sun Mar 9 20:22:20 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 507AF1065670 for ; Sun, 9 Mar 2008 20:22:20 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id 38C6D8FC16 for ; Sun, 9 Mar 2008 20:22:20 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id 88F631CC068; Sun, 9 Mar 2008 13:22:19 -0700 (PDT) Date: Sun, 9 Mar 2008 13:22:19 -0700 From: Jeremy Chadwick To: freebsd-stable@freebsd.org Message-ID: <20080309202219.GA26872@eos.sc1.parodius.com> References: <20080309194620.GA48035@support.netroad.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080309194620.GA48035@support.netroad.ru> User-Agent: Mutt/1.5.16 (2007-06-09) Subject: Re: How to build profiled libraries on RELENG_7? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Mar 2008 20:22:20 -0000 On Sun, Mar 09, 2008 at 10:46:21PM +0300, Lenar Tukhvatullin wrote: > I need profiled versions of system libraries. > > I put WITHOUT_PROFILE=NO in /etc/src.conf (/etc/make.conf not present) A couple things: The value you pass to WITH/WITHOUT/NO variables in src.conf(5) or make.conf(5) rarely has purpose. The make.conf(5) manpage documents this fact: The following lists provide a name and short description for each vari- able you can use during the indicated builds. The values of variables flagged as bool are ignored; the variable being set at all (even to ``FALSE'' or ``NO'') causes it to be treated as if it were set. Thus, the following lines are all synonymous in functionality (disabling profiled libraries): WITHOUT_PROFILE=yes WITHOUT_PROFILE=true WITHOUT_PROFILE=no WITHOUT_PROFILE=aphuvudet WITHOUT_PROFILE="the ape is watching" However... I don't quite understand the profiling framework for src/. There are numerous variables referenced, such as MK_PROFILE, and I also see a couple references to NO_PROFILE (which should be a RELENG_6 and below thing?). I also see this in src/Makefile.inc1, which makes me wonder if profiling support is broken altogether: 391 _libraries: 392 @echo 393 @echo "--------------------------------------------------------------" 394 @echo ">>> stage 4.2: building libraries" 395 @echo "--------------------------------------------------------------" 396 ${_+_}cd ${.CURDIR}; \ 397 ${WMAKE} -DNO_FSCHG -DWITHOUT_HTML -DWITHOUT_INFO -DNO_LINT \ 398 -DWITHOUT_MAN -DWITHOUT_NLS -DWITHOUT_PROFILE libraries Note the unconditional use of the -DWITHOUT_PROFILE flag. Anyone familiar with this framework who can comment on what the state of things is? -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |