Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Aug 2011 11:34:11 +0200
From:      Dimitry Andric <dim@FreeBSD.org>
To:        Alexander Best <arundel@freebsd.org>
Cc:        freebsd-toolchain@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:  <4E537413.5070105@FreeBSD.org>
In-Reply-To: <20110823092301.GA45910@freebsd.org>
References:  <20110818050142.GA96873@freebsd.org> <4E4CB59B.3000005@FreeBSD.org> <20110818173508.GA92360@freebsd.org> <4E4D6E01.40905@FreeBSD.org> <20110819080105.GA92201@freebsd.org> <4E50551D.9020104@FreeBSD.org> <20110823092301.GA45910@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2011-08-23 11:23, Alexander Best wrote:
...
>> The patch fixes this by adding "-ECC -ECXX -EAS -ELD" to the build32
>> sub-make invocation, which forces those environment variables to always
>> override any assignment in makefiles.
>>
>> It makes it possible to simply do:
>>
>> CC=clang
>> CXX=clang++
>>
>> in your make.conf, or specify a path, even:
>>
>> CC=/usr/local/bin/gcc46
>> CXX=/usr/local/bin/g++46
>>
>> Note this was already possible on i386, but not yet on amd64.  Also,
>> strange things might happen if you set CC but not CXX, or vice versa...
>
> any chance this patch can be committed?

I hope so, but it needs to be reviewed by one or more senior build
gurus, before it makes a chance (if any) to get into 9.0-R.

It's really just a band-aid now.  Obviously, the whole way Makefile.inc1
sets up CC to run the build32 stage should be overhauled, and as Warner
said, we really need a (SYSTEM|WORLD|PORTS)_COMPILER global switch
(instead of manually setting CC), but that kind of restructuring must be
done after the tree is unfrozen, not now.



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