CLANG; still cc in use when building the WORLD with CLANG?

Hartmann, O. ohartman at zedat.fu-berlin.de
Tue Aug 30 14:01:32 UTC 2011


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.
>
>



More information about the freebsd-current mailing list