From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 11 08:05:00 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 8B4841065670 for ; Thu, 11 Mar 2010 08:05:00 +0000 (UTC) (envelope-from cbergstrom@pathscale.com) Received: from mail-qy0-f183.google.com (mail-qy0-f183.google.com [209.85.221.183]) by mx1.freebsd.org (Postfix) with ESMTP id 416528FC08 for ; Thu, 11 Mar 2010 08:05:00 +0000 (UTC) Received: by qyk14 with SMTP id 14so4547556qyk.9 for ; Thu, 11 Mar 2010 00:04:59 -0800 (PST) Received: by 10.224.87.66 with SMTP id v2mr1876719qal.343.1268292942068; Wed, 10 Mar 2010 23:35:42 -0800 (PST) Received: from [192.168.1.37] (ppp-58-8-202-189.revip2.asianet.co.th [58.8.202.189]) by mx.google.com with ESMTPS id 23sm6147576qyk.7.2010.03.10.23.35.39 (version=SSLv3 cipher=RC4-MD5); Wed, 10 Mar 2010 23:35:40 -0800 (PST) Message-ID: <4B989DD6.601@pathscale.com> Date: Thu, 11 Mar 2010 14:37:58 +0700 From: =?ISO-8859-1?Q?=22C=2E_Bergstr=F6m=22?= User-Agent: Thunderbird 2.0.0.22 (X11/20090909) MIME-Version: 1.0 To: Shrikanth Kamath References: <291941b81003100954n276d467an234c24e28f3b28e5@mail.gmail.com> In-Reply-To: <291941b81003100954n276d467an234c24e28f3b28e5@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: ctfconvert dependency... 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: Thu, 11 Mar 2010 08:05:00 -0000 Shrikanth Kamath wrote: > Just trying to understand the build dependency for ctfconvert... > > I see ctfconvert (cddl/usr.bin/ctfconvert/) has dependency on libctf.a > (cddl/lib/libctf/) > > Now the snippet in bsd.lib.mk has this check for various target suffixes, > > .c.So: > .if defined(CTFCONVERT) > ${CTFCONVERT} ${CTFFLAGS} ${.TARGET} > .endif > > and sys.mk > > .c > .if defined(CTFCONVERT) > ${CTFCONVERT} ${CTFFLAGS} ${.TARGET} > .endif > > My query, libctf includes in it's Makefile, so will the above > not try to > run 'ctfconvert' on libctf itself? > I'm going to make some assumptions and go out on a limb here.. The CDDL code in FBSD came from OpenSolaris (specifically onnv-gate hg repo) When OpenSolaris is built they convert stab debugging information over to CTF (compressed text format?). This is done so that they can have debugging information, but without the overhead of stab (or dwarf2). I don't know how much of the original onnv-gate Makefiles came over from OpenSolaris, but assuming the FBSD kernel doesn't need/use CTF format this dependency can and probably should go away. (Only (k)mdb supports CTF that I'm aware of?) Hopefully this is useful information and I'm not too wrong or someone will correct me Best, ./C