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>
next in thread | previous in thread | raw e-mail | index | archive | help
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 explai= n why >>> no one else seems to see this. =A0Still, I think the underlying issue w= arrants >>> investigation. >> >> Two things are wrong here: >> 1. You should use CC?=3D, CXX?=3D, 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. > > =A0$ echo 'CC ?=3D clang' >foo.mk > =A0$ __MAKE_CONF=3Dfoo.mk make -dv /dev/null |& fgrep :CC > =A0Global:CC =3D cc I was probably misremembering CPUTYPE?=3D. Thanks, -Garrett
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTimH7xzSjpav6KX4edGT1DHqVJTd_g>