From owner-freebsd-questions@FreeBSD.ORG Mon Nov 5 13:59:57 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 6C6BF16A417 for ; Mon, 5 Nov 2007 13:59:57 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from mail.potentialtech.com (internet.potentialtech.com [66.167.251.6]) by mx1.freebsd.org (Postfix) with ESMTP id 231F813C481 for ; Mon, 5 Nov 2007 13:59:56 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from vanquish.pitbpa0.priv.collaborativefusion.com (pr40.pitbpa0.pub.collaborativefusion.com [206.210.89.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.potentialtech.com (Postfix) with ESMTP id 0062AEBC3B; Mon, 5 Nov 2007 08:59:21 -0500 (EST) Date: Mon, 5 Nov 2007 08:59:20 -0500 From: Bill Moran To: White Hat Message-Id: <20071105085920.1acf1aa6.wmoran@potentialtech.com> In-Reply-To: <146042.86109.qm@web34406.mail.mud.yahoo.com> References: <146042.86109.qm@web34406.mail.mud.yahoo.com> X-Mailer: Sylpheed 2.4.4 (GTK+ 2.10.14; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 13:59:57 -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