From owner-freebsd-current@FreeBSD.ORG Tue Aug 30 14:05:57 2011 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 26B5E1065670 for ; Tue, 30 Aug 2011 14:05:57 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by mx1.freebsd.org (Postfix) with ESMTP id D55808FC13 for ; Tue, 30 Aug 2011 14:05:56 +0000 (UTC) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost1.zedat.fu-berlin.de (Exim 4.69) with esmtp (envelope-from ) id <1QyOwt-0001Gv-Rf>; Tue, 30 Aug 2011 16:05:55 +0200 Received: from e178029245.adsl.alicedsl.de ([85.178.29.245] helo=thor.walstatt.dyndns.org) by inpost2.zedat.fu-berlin.de (Exim 4.69) with esmtpsa (envelope-from ) id <1QyOwt-0004Kj-On>; Tue, 30 Aug 2011 16:05:55 +0200 Message-ID: <4E5CEE43.8070603@zedat.fu-berlin.de> Date: Tue, 30 Aug 2011 16:05:55 +0200 From: "Hartmann, O." User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:6.0) Gecko/20110825 Thunderbird/6.0 MIME-Version: 1.0 To: Olivier Smedts References: <4E5CB1E9.9080801@zedat.fu-berlin.de> <201108300709.23538.vertex.Symphony@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: 85.178.29.245 Cc: freebsd-current@freebsd.org, Alex Kuster Subject: Re: CLANG; still cc in use when building the WORLD with CLANG? 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: Tue, 30 Aug 2011 14:05:57 -0000 On 08/30/11 15:14, Olivier Smedts wrote: > 2011/8/30 Alex Kuster: >> I would also recommend you to move the clang stuff for base system where it >> belongs ( /etc/src.conf .. see src.conf(5) ). > > From http://wiki.freebsd.org/BuildingFreeBSDWithClang > > Add the following lines to /etc/make.conf: > > .if !defined(CC) || ${CC} == "cc" > CC=clang > .endif > .if !defined(CXX) || ${CXX} == "c++" > CXX=clang++ > .endif > .if !defined(CPP) || ${CPP} == "cpp" > CPP=clang -E > .endif > # Don't die on warnings > NO_WERROR= > WERROR= > # Don't forget this when using Jails! > NO_FSCHG= > > So make.conf seems to be the good place. > But as the previous poster referred to, there was an issue with CURDIR settings which do not work properly anymore. The suggestions from the WIKI set a global use of CLANG, even for ports, which I do not want since many ports do not build properly or refuse to build when compiled with CLANG. And I don't want to switch/edit /etc/make.conf everytime I build a world and then edit back when doing simple daily/weekly port-upgrades. For the ease of use, in such a case the whole CLANG YES or NO switches/knobs/stuff should really be triggered only by /etc/src.conf, since this location intuitively suggests it is the right place (as my Emglish understanding of the manpage of src.conf(5) is correct and this place is the place for the WORLD's stuff). oh