From owner-freebsd-questions@FreeBSD.ORG Mon Nov 5 14:18:26 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA52816A417 for ; Mon, 5 Nov 2007 14:18:26 +0000 (UTC) (envelope-from pigskin_referee@yahoo.com) Received: from web34408.mail.mud.yahoo.com (web34408.mail.mud.yahoo.com [66.163.178.157]) by mx1.freebsd.org (Postfix) with SMTP id 8162013C4DB for ; Mon, 5 Nov 2007 14:18:26 +0000 (UTC) (envelope-from pigskin_referee@yahoo.com) Received: (qmail 96556 invoked by uid 60001); 5 Nov 2007 14:18:17 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=bcKmfdb9+uwFYrQU8TO5XOC2upG7m5Mp2keIwSOGf7urrvCABij++bu95F8IJrrGtJ3owe+v5ifxVDPKc0tzlFtc2+4VAmcuFO26PzMmlQKPexMY0TyPCT3zGfAvOSoWoMUxGhDeiGW0FA4izBDMz/jtZi3mJcT7fN9gYfoDjSw=; X-YMail-OSG: Hil4eWUVM1n4DnKzTW6HpMn9c7gzJqaPgtzsgBMFKWkH4W_56OQdb.n0FLSdB3xQh0QTUpGbk4OIdohXCa7K_8gULX6l4YdJxqNJf2fihCfzX51rGd8- Received: from [67.189.206.211] by web34408.mail.mud.yahoo.com via HTTP; Mon, 05 Nov 2007 06:18:16 PST X-Mailer: YahooMailRC/814.06 YahooMailWebService/0.7.152 Date: Mon, 5 Nov 2007 06:18:16 -0800 (PST) From: White Hat To: FreeBSD Users Questions MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <849261.96295.qm@web34408.mail.mud.yahoo.com> Subject: Re: Configure to use WITH_DEBUG 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: Mon, 05 Nov 2007 14:18:26 -0000 > In response to White Hat : > > > I have a system that I am setting up that will only be used to test programs. > > I therefore want all programs built with debug code. To facilitate that task, I > > was wondering if I could put a global flag in the '/etc/make.conf' file. > > Assuming that would work, which of these is the better solution. > > > > 1) WITH_DEBUG > > 2) WITH_DEBUG=1 > > 3) WITH_DEBUG=true > > 4) -DWITH_DEBUG > > > > If there is a better solution, I would appreciate hearing about it. > > #2 and #3 will work. > The key is that the variable is set, not what it's set to. As a joke, > you can do WITH_DEBUG=no in make.conf, and confuse the hell out of other > sysadmins. > > Note that there may be additional port-specific debugging that would > not be turned on by the global WITH_DEBUG, but you'll have to handle > that on a port-by-port basis. > > -- > Bill Moran > http://www.potentialtech.com Interesting. Now if I want to turn DEBUG off for a particular port, would I use: 1) WITH_DEBUG 2) WITH_DEBUG= 3) WITH_DEBUG="" One other question. From what I have been reading, the use of 'WITH_DEBUG' also prevents the stripping of debug code when the program is installed. Is that correct, or do I have to use another flag to insure that debug code is not stripped from the installed program? Thanks again! __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com