From owner-freebsd-current@FreeBSD.ORG Tue Aug 30 12:58:44 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 693BF1065676 for ; Tue, 30 Aug 2011 12:58:44 +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 264768FC14 for ; Tue, 30 Aug 2011 12:58:43 +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 <1QyNtq-0003sb-TU>; Tue, 30 Aug 2011 14:58:42 +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 <1QyNtq-0007wb-Qb>; Tue, 30 Aug 2011 14:58:42 +0200 Message-ID: <4E5CDE82.6060403@zedat.fu-berlin.de> Date: Tue, 30 Aug 2011 14:58:42 +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: Alex Kuster References: <4E5CB1E9.9080801@zedat.fu-berlin.de> <201108300709.23538.vertex.Symphony@gmail.com> In-Reply-To: <201108300709.23538.vertex.Symphony@gmail.com> 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 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 12:58:44 -0000 On 08/30/11 12:09, Alex Kuster wrote: > Hi, read this -> http://lists.freebsd.org/pipermail/freebsd-current/2011- > August/thread.html#26468 > > Using the /etc/make.conf with CURDIR approach seems to be broken from some > time now ... > I would also recommend you to move the clang stuff for base system where it > belongs ( /etc/src.conf .. see src.conf(5) ). > My first inyutive intention was this stuff belongs to /etc/src.conf(5) but then I read that in /etc/src.conf there should be only varibales defined by YES or NO to trigger some knobs. And: I was told that the CLANG_ stuff belongs to /etc/make.conf since there were several dependencies triggered by make.conf which ist needed for a clean build. I'm really confused now! Thanks a lot anyway. >> ###################################### >> # FreeBSD source tree config options >> >> .if !defined(NO_CLANG) >> CC=clang >> CXX=clang++ >> >> # Don't die on warnings >> NO_WERROR= >> WERROR= >> >> CFLAGS+="-O2" >> >> # Don't forget this when using Jails! >> #NO_FSCHG= >> .endif > (That's more or less how my /etc/src.conf is ) > > or you could just change this : > >> .if !empty(.CURDIR:M/usr/src*) > to this : > >> .if !empty(.CURDIR:M/usr/src*) || !empty(.CURDIR:M/usr/obj/*) > Choose whatever you like. > > Cheers. > >