Re: Clang buildworld failure due to multiple definitions of __isnanf

From: Garrett Cooper <yanegomi_at_gmail.com>
Date: Tue, 28 Jun 2011 12:49:47 -0700
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
Received on Tue Jun 28 2011 - 17:49:48 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:15 UTC