From owner-freebsd-questions@FreeBSD.ORG Tue Aug 21 19:45:03 2007 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2438B16A421; Tue, 21 Aug 2007 19:45:03 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from unsane.co.uk (unknown [IPv6:2001:470:1f01:ffff::121]) by mx1.freebsd.org (Postfix) with ESMTP id 8926713C481; Tue, 21 Aug 2007 19:45:02 +0000 (UTC) (envelope-from jhary@unsane.co.uk) Received: from [10.0.0.178] ([10.0.0.178]) (authenticated bits=0) by unsane.co.uk (8.14.0/8.14.0) with ESMTP id l7LJgolK025139 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 21 Aug 2007 20:42:51 +0100 (BST) (envelope-from jhary@unsane.co.uk) Message-ID: <46CB40AF.2070201@unsane.co.uk> Date: Tue, 21 Aug 2007 20:44:47 +0100 From: Vince Hoffman-Kazlauskas User-Agent: Thunderbird 1.5.0.10 (X11/20070324) MIME-Version: 1.0 To: "Dan Mahoney, System Admin" References: <20070821135923.Q64507@prime.gushi.org> In-Reply-To: <20070821135923.Q64507@prime.gushi.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: questions@freebsd.org, dougb@freebsd.org Subject: Re: Building UNSTRIPPED binaries in ports? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2007 19:45:03 -0000 Dan Mahoney, System Admin wrote: > Hello, > > I am encountering a bug with named-9.4.1-P1 that I am attempting to > work with ISC on, that I have built from ports (dns/bind94). However, > I need a non-stripped version of the binary to get a backtrace. I > can't "roll my own" binary because it may be related to some way that > the port is built so I need to maintain a similar build environment. > > Is there some make.conf or compile time flag that I can set that would > prevent the stripping from happening? > > Or would I just have to manually edit the makefile someplace -- and if > so, can anyone give a pointer as to where? Setting the strip command > to /bin/true or something, perhaps -- but I can't be sure if the > strip_command is being used. > > I've found references in the porter's handbook that state all binaries > should be stripped, but I think in cases like this it would be useful > to give the user a universal option to not do so. > I had a quick dig in /usr/ports/Mk and from bsd.port.mk It looks like what you want is " # WITH_DEBUG - If set, debugging flags are added to CFLAGS and the # binaries don't get stripped by INSTALL_PROGRAM. # Besides, individual ports might add their specific # to produce binaries for debugging purposes. # You can override the debug flags that are passed to # the compiler by setting DEBUG_FLAGS. It is set to # "-g" at default " Vince > -Dan > > -- > > "Man, this is such a trip" > > -Dan Mahoney, October 25, 1997 > > --------Dan Mahoney-------- > Techie, Sysadmin, WebGeek > Gushi on efnet/undernet IRC > ICQ: 13735144 AIM: LarpGM > Site: http://www.gushi.org > --------------------------- > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"