Date: Sun, 26 Feb 2012 23:52:42 +0100 From: Dimitry Andric <dim@FreeBSD.org> To: Warner Losh <imp@bsdimp.com> Cc: Alexander Best <arundel@FreeBSD.org>, freebsd-toolchain@FreeBSD.org Subject: Re: setting CC/CXX/CPP unconditionally in src.conf Message-ID: <4F4AB7BA.4040302@FreeBSD.org> In-Reply-To: <A579A4B9-EF69-49BF-B84C-BD601DD9E359@bsdimp.com> References: <20120226213703.GA33988@freebsd.org> <A579A4B9-EF69-49BF-B84C-BD601DD9E359@bsdimp.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F4AB7BA.4040302>