Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Jun 2011 12:49:47 -0700
From:      Garrett Cooper <yanegomi@gmail.com>
To:        Pan Tsu <inyaoo@gmail.com>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: Clang buildworld failure due to multiple definitions of __isnanf
Message-ID:  <BANLkTimH7xzSjpav6KX4edGT1DHqVJTd_g@mail.gmail.com>
In-Reply-To: <86y60ld9gk.fsf@gmail.com>
References:  <4E07EBA2.70500@shadowsun.net> <4E08778D.2050302@FreeBSD.org> <4E08A8DB.2020805@shadowsun.net> <BANLkTikmjHS7vme4z0ODMv6daA_A8%2B8j=A@mail.gmail.com> <86y60ld9gk.fsf@gmail.com>

index | next in thread | previous in thread | raw e-mail

On Tue, Jun 28, 2011 at 12:47 PM, Pan Tsu <inyaoo@gmail.com> wrote:
> Garrett Cooper <yanegomi@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


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTimH7xzSjpav6KX4edGT1DHqVJTd_g>