From owner-freebsd-current@FreeBSD.ORG Sun Apr 25 11:17:42 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7567A1065673; Sun, 25 Apr 2010 11:17:42 +0000 (UTC) (envelope-from uqs@spoerlein.net) Received: from acme.spoerlein.net (acme.spoerlein.net [IPv6:2001:470:9a47::1]) by mx1.freebsd.org (Postfix) with ESMTP id 338828FC0A; Sun, 25 Apr 2010 11:17:42 +0000 (UTC) Received: from acme.spoerlein.net (localhost.spoerlein.net [IPv6:::1]) by acme.spoerlein.net (Postfix) with ESMTPS id 1B0975CAC; Sun, 25 Apr 2010 13:17:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=spoerlein.net; s=dkim200908; t=1272194261; bh=XXpP//J7BKmFrJfL6jvGnHrHzs0FTstZcR/dKAuASU4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Transfer-Encoding:In-Reply-To; b=j6btTZ0w7EuNpUcuaXKFWRIURrtP1g7PgHR1J65oNZVjey0w/JgSojpbFZGfeidxb aHH+IXOKdeOQJsaKad3lxVeHSErUNyTRFTsKv3OAYGhFSRxVBZtkEnFA6rKNxHYO4Q DVvu4Ns4UGpuCzJDpmBhI80yss/WTrACca3lBLLE= Received: (from uqs@localhost) by acme.spoerlein.net (8.14.4/8.14.4/Submit) id o3PBHebc037821; Sun, 25 Apr 2010 13:17:40 +0200 (CEST) (envelope-from uqs@spoerlein.net) Date: Sun, 25 Apr 2010 13:17:40 +0200 From: Ulrich =?utf-8?B?U3DDtnJsZWlu?= To: Pegasus Mc Cleaft Message-ID: <20100425111740.GI92627@acme.spoerlein.net> Mail-Followup-To: Pegasus Mc Cleaft , freebsd-hackers@freebsd.org, freebsd-current@freebsd.org References: <201004241642.38017.ken@mthelicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <201004241642.38017.ken@mthelicon.com> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-hackers@freebsd.org, freebsd-current@freebsd.org Subject: Re: kern+world / ports make options X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Apr 2010 11:17:42 -0000 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