From owner-freebsd-toolchain@FreeBSD.ORG Sun Feb 26 22:52:49 2012 Return-Path: Delivered-To: freebsd-toolchain@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1198C1065670; Sun, 26 Feb 2012 22:52:49 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id C133B8FC08; Sun, 26 Feb 2012 22:52:48 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:1527:bb3e:9ca7:59c2] (unknown [IPv6:2001:7b8:3a7:0:1527:bb3e:9ca7:59c2]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 0EED55C37; Sun, 26 Feb 2012 23:52:46 +0100 (CET) Message-ID: <4F4AB7BA.4040302@FreeBSD.org> Date: Sun, 26 Feb 2012 23:52:42 +0100 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:11.0) Gecko/20120216 Thunderbird/11.0 MIME-Version: 1.0 To: Warner Losh References: <20120226213703.GA33988@freebsd.org> In-Reply-To: X-Enigmail-Version: 1.4a1pre Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Alexander Best , freebsd-toolchain@FreeBSD.org Subject: Re: setting CC/CXX/CPP unconditionally in src.conf X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Feb 2012 22:52:49 -0000 On 2012-02-26 23:38, Warner Losh wrote: > On Feb 26, 2012, at 2:37 PM, Alexander Best wrote: >> any chance support for setting CC/CXX/CPP unconditionally in src.conf could be >> added before the release of freebsd 10.0? the way it is done atm is really not >> intuitive. the rule should really be: >> >> - make.conf = applies globally >> - src.conf = applies only to /usr/src >> ( maybe a ports.conf or port.conf could be introduced at some point, too) >> ... the current situation, where only certain variables can be set in src.conf >> is not ideal. > > What doesn't work? Or rather, how does it work now? Setting CC/CXX/CPP and such in src.conf doesn't work, at least not for all Makefiles in world. There are still many of them that don't do the right thing, picking up CC values from sys.mk and/or make.conf instead. The trickiest one is Makefile.inc1, which does some special magic, and isn't really a normal BSD Makefile anyway. :) I've got a git branch with some experiments to have all the compiler settings read from src.conf instead of make.conf, but I didn't finish it before some other work took precedence...