Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Aug 2011 14:58:42 +0200
From:      "Hartmann, O." <ohartman@zedat.fu-berlin.de>
To:        Alex Kuster <vertex.symphony@gmail.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: CLANG; still cc in use when building the WORLD with CLANG?
Message-ID:  <4E5CDE82.6060403@zedat.fu-berlin.de>
In-Reply-To: <201108300709.23538.vertex.Symphony@gmail.com>
References:  <4E5CB1E9.9080801@zedat.fu-berlin.de> <201108300709.23538.vertex.Symphony@gmail.com>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E5CDE82.6060403>