Date: Thu, 18 Aug 2011 15:47:29 -0600 From: Warner Losh <imp@bsdimp.com> To: Kostik Belousov <kostikbel@gmail.com> Cc: freebsd-toolchain@FreeBSD.ORG, Dimitry Andric <dim@FreeBSD.ORG> Subject: Re: Relocatable linking with relocations from format elf64-x86-64-freebsd (crt1_s.o) to format elf32-i386-freebsd (gcrt1.o) is not supported Message-ID: <3795F462-E962-4D1A-BBCF-CE6B314961E8@bsdimp.com> In-Reply-To: <20110818200441.GJ17489@deviant.kiev.zoral.com.ua> References: <20110818050142.GA96873@freebsd.org> <4E4CB59B.3000005@FreeBSD.org> <20110818173508.GA92360@freebsd.org> <4E4D6E01.40905@FreeBSD.org> <20110818200441.GJ17489@deviant.kiev.zoral.com.ua>
index | next in thread | previous in thread | raw e-mail
We really need a 'SYSTEM_COMPILER={gcc,clang,xxx}' sort of knob.
Warner
On Aug 18, 2011, at 2:04 PM, Kostik Belousov wrote:
> On Thu, Aug 18, 2011 at 09:54:41PM +0200, Dimitry Andric wrote:
>> The problem is in your make.conf. Effectively, you are doing:
>>
>> CC = clang
>> CXX = clang++
>>
>> which will not work, at least not for the 32-bit compat stage on amd64.
>> Please use the following fragment instead, which is recommended on
>> <http://wiki.freebsd.org/BuildingFreeBSDWithClang>:
>>
>> .if !defined(CC) || ${CC} == "cc"
>> CC=clang
>> .endif
>> .if !defined(CXX) || ${CXX} == "c++"
>> CXX=clang++
>> .endif
>> .if !defined(CPP) || ${CPP} == "cpp"
>> CPP=clang -E
>> .endif
>
> May be, add the commented out lines into share/examples/etc/make.conf ?
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3795F462-E962-4D1A-BBCF-CE6B314961E8>
