From: Philip Taylor Subject: Build process Date: Sun, 07 Nov 2004 22:46:15 +0000 Message-ID: <418EA5B7.7010507@zaynar.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Sender: xen-devel-admin@lists.sourceforge.net Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: xen-devel@lists.sourceforge.net List-Id: xen-devel@lists.xenproject.org I've been playing a little with Xen on Gentoo (just out of interest, rather than for any productive reason), and considered making an ebuild to allow a simple "emerge xen-utilities xen-sources" method of compiling the tools and kernel (probably equivalent to "emerge usermode-utilities usermode-sources" for UML). (It would be easier if I knew what I was doing, and I haven't actually got much working yet, but it should be theoretically possible.) One small (but annoying) problem was that I couldn't change the compiler. Some of the Makefiles set 'CC=gcc' and 'HOSTCC=gcc', which referred to GCC 3.4 (which doesn't work -- I think it died while compiling the kernel), and I wanted to explicitly use the GCC 3.3 binary. The GCC problem was relatively easily fixed by swapping my system's default gcc; but I also fancied using ccache, which usually works by just changing CC, and couldn't find any way to do that without altering the makefiles (and I'd prefer to build from a clean copy of the source). Would it be possible/safe to use something like 'CC ?= gcc' and 'HOSTCC ?= $(CC)' (I hope that does what I expect) in all the relevant makefiles, so the compiler can be easily overriden? Or is there some other solution that I've missed? Thanks, -- Philip Taylor philip@zaynar.demon.co.uk ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click