From owner-freebsd-current@FreeBSD.ORG Tue Aug 30 14:01:31 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 E9A45106566B for ; Tue, 30 Aug 2011 14:01:31 +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 A5F9F8FC0A for ; Tue, 30 Aug 2011 14:01:31 +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 <1QyOsc-0000Nl-ME>; Tue, 30 Aug 2011 16:01:30 +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 <1QyOsc-00043B-JE>; Tue, 30 Aug 2011 16:01:30 +0200 Message-ID: <4E5CED3A.8020107@zedat.fu-berlin.de> Date: Tue, 30 Aug 2011 16:01:30 +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 14:01:32 -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) ). > >> ###################################### >> # 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 ) > With this setup only in /etc/src.conf, build process will die soon due to an unrecognized/unsused compiler option std99! I guess there is some NO_WERROR=/WERROR setting your /etc/make.conf left and that is why src.conf seems at the moment not the right place/only place to put things. > 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. > >