From owner-freebsd-questions@FreeBSD.ORG Mon Nov 5 14:27:05 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 C992816A468 for ; Mon, 5 Nov 2007 14:27:05 +0000 (UTC) (envelope-from LoN_Kamikaze@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id 1E6B513C4D9 for ; Mon, 5 Nov 2007 14:27:04 +0000 (UTC) (envelope-from LoN_Kamikaze@gmx.de) Received: (qmail invoked by alias); 05 Nov 2007 14:26:03 -0000 Received: from vpn-cl-160-105.rz.uni-karlsruhe.de (EHLO mobileKamikaze.norad) [141.3.160.105] by mail.gmx.net (mp001) with SMTP; 05 Nov 2007 15:26:03 +0100 X-Authenticated: #5465401 X-Provags-ID: V01U2FsdGVkX19GWkxGVsBGojQz4VVYlii3ZgfmQKydyOjWBsJMa7 UwssEFfpSDTdxB Message-ID: <472F27FA.4090304@gmx.de> Date: Mon, 05 Nov 2007 15:26:02 +0100 From: "[LoN]Kamikaze" User-Agent: Thunderbird 2.0.0.6 (X11/20071101) MIME-Version: 1.0 To: White Hat References: <849261.96295.qm@web34408.mail.mud.yahoo.com> In-Reply-To: <849261.96295.qm@web34408.mail.mud.yahoo.com> X-Enigmail-Version: 0.95.5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Cc: FreeBSD Users Questions 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:27:05 -0000 White Hat wrote: >> 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="" > The make manpage is your friend: .if ${.CURDIR:M/usr/ports/category/port} .undef WITH_DEBUG .endif