On Wed, Feb 23, 2011 at 10:22 AM, datastream datastream.freecity
<datastream.freec...@gmail.com> wrote:
> I deleted all files in /usr/src and /usr/obj. it changes nothing, i still
> get same error.
>
> In /etc/make.conf:
> .if !defined(CC) || ${CC} == "cc"
> CC=clang
> .endif
> .if !defined(CXX) || ${CXX} == "c++"
> CXX=clang++
> .endif
> # Don't die on warnings
> NO_WERROR=
> WERROR=
> STRIP=
> CFLAGS+=-fno-omit-frame-pointer

I'm not having problems here, my /etc/make.conf contains:

.if ${.CURDIR:N*usr/src*}==""
. if !defined(CC) || ${CC} == "cc"
CC=clang
. endif
. if !defined(CXX) || ${CXX} == "c++"
CXX=clang++
. endif
# Don't die on warnings
NO_WERROR=
WERROR=
.endif

And my /etc/src.conf:

.if !defined(CC) || ${CC} == "cc"
CC=clang
.endif
.if !defined(CXX) || ${CXX} == "c++"
CXX=clang++
.endif
# Don't die on warnings
NO_WERROR=
WERROR=

It's building fine with clang.
-- 
Renato Botelho
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Reply via email to