Clang buildworld failure due to multiple definitions of __isnanf

Garrett Cooper yanegomi at gmail.com
Tue Jun 28 19:49:48 UTC 2011


On Tue, Jun 28, 2011 at 12:47 PM, Pan Tsu <inyaoo at gmail.com> wrote:
> Garrett Cooper <yanegomi at gmail.com> writes:
>
> [...]
>>> Just noticed, the CFLAGS would disable optimization, which would explain why
>>> no one else seems to see this.  Still, I think the underlying issue warrants
>>> investigation.
>>
>> Two things are wrong here:
>> 1. You should use CC?=, CXX?=, etc in order to properly crossbuild (as
>> Warner pointed out to me in another thread).
>
> Huh? sys.mk already defines ${CC} and *before* make.conf.
>
>  $ echo 'CC ?= clang' >foo.mk
>  $ __MAKE_CONF=foo.mk make -dv /dev/null |& fgrep :CC
>  Global:CC = cc

I was probably misremembering CPUTYPE?=.
Thanks,
-Garrett


More information about the freebsd-current mailing list