Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Jan 2009 15:17:27 -0800
From:      Doug Barton <dougb@FreeBSD.org>
To:        rea-fbsd@codelabs.ru
Cc:        "Svein Skogen \(List Mail Account\)" <svein-listmail@stillbilde.net>, freebsd-current@freebsd.org
Subject:   Re: gcc 4.3: when will it become standard compiler?
Message-ID:  <496A7E07.6090702@FreeBSD.org>
In-Reply-To: <YpcsB0HRFhYmKESHdbYVioe/RtQ@gS3mlJYZp4W/mD1zb8cKufPRHwo>
References:  <49668763.8020705@mail.zedat.fu-berlin.de>	<49671748.3030709@gmx.de> <4967259C.9090408@stillbilde.net> <YpcsB0HRFhYmKESHdbYVioe/RtQ@gS3mlJYZp4W/mD1zb8cKufPRHwo>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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