From owner-freebsd-current@FreeBSD.ORG Sun Jan 11 23:44:19 2009 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 1C2C5106564A for ; Sun, 11 Jan 2009 23:44:19 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx22.fluidhosting.com [204.14.89.5]) by mx1.freebsd.org (Postfix) with ESMTP id 96C5E8FC1A for ; Sun, 11 Jan 2009 23:44:18 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 26785 invoked by uid 399); 11 Jan 2009 23:17:29 -0000 Received: from localhost (HELO lap.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 11 Jan 2009 23:17:29 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <496A7E07.6090702@FreeBSD.org> Date: Sun, 11 Jan 2009 15:17:27 -0800 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0.0.19 (X11/20090111) MIME-Version: 1.0 To: rea-fbsd@codelabs.ru References: <49668763.8020705@mail.zedat.fu-berlin.de> <49671748.3030709@gmx.de> <4967259C.9090408@stillbilde.net> In-Reply-To: X-Enigmail-Version: 0.95.7 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "Svein Skogen \(List Mail Account\)" , freebsd-current@freebsd.org Subject: Re: gcc 4.3: when will it become standard compiler? 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, 11 Jan 2009 23:44:19 -0000 Eygene Ryabinkin wrote: > Svein, good day. > > Fri, Jan 09, 2009 at 11:23:24AM +0100, Svein Skogen (List Mail Account) wrote: >> Would it be possible, as a "workaround" to have "system-CC" and >> "ports-CC" defined in make.conf, making one CC the compiler for /usr/src >> and another for ports, or would this just create debugging nightmares? > > Will the following additions to your make.conf suit you? > ----- > .if ${.CURDIR:M/usr/src/*} || ${.CURDIR:M/usr/src} > CC = system-CC > .endif > > .if ${.CURDIR:M/usr/ports/*} || ${.CURDIR:M/usr/ports} > CC = ports-CC > .endif > ----- That's a nice idea, but doesn't take into account those of us for whom /usr/ports is a symlink. ports-mgmt/portconf has the logic in the installer to create the correct lines for make.conf, and has the benefit of being useful for other things too. :) Doug -- This .signature sanitized for your protection