From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 9 09:41:40 2006 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.org Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EF7BD16A41A for ; Fri, 9 Jun 2006 09:41:40 +0000 (UTC) (envelope-from tataz@tataz.chchile.org) Received: from smtp2-g19.free.fr (smtp2-g19.free.fr [212.27.42.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 89DBF43D77 for ; Fri, 9 Jun 2006 09:41:36 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from tatooine.tataz.chchile.org (tataz.chchile.org [82.233.239.98]) by smtp2-g19.free.fr (Postfix) with ESMTP id BF40C7322D for ; Fri, 9 Jun 2006 11:41:35 +0200 (CEST) Received: from obiwan.tataz.chchile.org (unknown [192.168.1.25]) by tatooine.tataz.chchile.org (Postfix) with ESMTP id 9FF059C439 for ; Fri, 9 Jun 2006 09:41:57 +0000 (UTC) Received: by obiwan.tataz.chchile.org (Postfix, from userid 1000) id 7E8FB40A5; Fri, 9 Jun 2006 11:40:53 +0200 (CEST) Date: Fri, 9 Jun 2006 11:40:52 +0200 From: Jeremie Le Hen To: freebsd-hackers@FreeBSD.org Message-ID: <20060609094052.GH1273@obiwan.tataz.chchile.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.11 Cc: Subject: How to disable a src.conf on command-line 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: Fri, 09 Jun 2006 09:41:41 -0000 Hi list ! I wonder what's the trick to enable (resp. disable) a feature that has been switched with a WITH_FOO/WITHOUT_FOO knob in src.conf(5) or make.conf(5). I can't find one myself because bsd.own.mk only check if the knob is defined, it doesn't care of its value. Furthermore it is an error to define both WITH_FOO and WITHOUT_FOO. My thought on this is WITH_FOO/WITHOUT_FOO knob are to be used for software inclusion/exclusion in the base system, but not to enable/disable compilation flags, since you can't disable it without editing src.conf(5). (My concern is about activation of stack-smashing protection compiler options. I'd like the user to be able to use -DWITHOUT_SSP to compile something, even if he has WITH_SSP=YES in src.conf(5). Should I turn the name of this options into ENABLE_SSP and pull it out the bsd.own.mk magic ?) Thank you.i Regards, -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org >