Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Apr 2010 13:17:40 +0200
From:      Ulrich =?utf-8?B?U3DDtnJsZWlu?= <uqs@spoerlein.net>
To:        Pegasus Mc Cleaft <ken@mthelicon.com>
Cc:        freebsd-hackers@freebsd.org, freebsd-current@freebsd.org
Subject:   Re: kern+world / ports make options
Message-ID:  <20100425111740.GI92627@acme.spoerlein.net>
In-Reply-To: <201004241642.38017.ken@mthelicon.com>
References:  <201004241642.38017.ken@mthelicon.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 24.04.2010 at 16:42:37 +0000, Pegasus Mc Cleaft wrote:
> Hello Hackers & Current, 
> 
> 	I was wondering it if is possible, or if it can be done so a separate set 
> of CC, CXX, etc can be specified for building the world and kernel 
> independently of a ports build?
> 
> 	Right now, I use the base GCC to compile the world and kernel, and GCC44 
> for most of the other ports (when it complies cleanly). But I have to keep 
> editing the /etc/make.conf file to switch between the two. 
> 
> 	It may already be implemented, but it would be nice if there was 
> something defined while the kernel and/or world is being built to that a 
> nested block of ifdefs can select which env variables to be set. 

src.conf has already been mentioned, I don't use it myself but have the
following set in make.conf

.if ${.CURDIR:M*/usr/ports/*}
NOCLEANDEPENDS=	true
WRKDIRPREFIX=	/usr/obj
.include "/etc/ports.conf"
.endif

I guess you can figure it out from there ...

hth
Ulrich Spörlein



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100425111740.GI92627>