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

Alex Kuster vertex.symphony at gmail.com
Tue Aug 30 10:08:33 UTC 2011


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 ) 

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.


-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/M/MU d-x s+:- !a C++(+++)@>$ 
UBLVS++++>$ P+ L+++(++++) E- W++ 
N++(+++) o K- w--- !O- M-@ !V PS++@ 
PE? Y+ PGP+++ t- 5? X- R* tv-- b+ 
DI+ D+(++) G h-- r++@ z?** 
------END GEEK CODE BLOCK------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 834 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20110830/5fcbf5c9/attachment.pgp


More information about the freebsd-current mailing list