[OpenBIOS] [PATCH] Add non-standard compiler prefix support
Mark Cave-Ayland
mark.cave-ayland at ilande.co.uk
Fri May 8 15:09:16 CEST 2015
On 01/05/15 14:38, Lennart Sorensen wrote:
> On Thu, Apr 30, 2015 at 05:26:50PM -0500, Segher Boessenkool wrote:
>> [ I didn't see this part of the thread before, sorry... Well, this
>> separate thread of the thread, heh. ]
>>
>> On Thu, Apr 30, 2015 at 08:22:46AM -0400, Lennart Sorensen wrote:
>>> PREFIX sure could be confused with the installation path prefix.
>>>
>>> I like the CROSS_COMPILER variable that the linux kernel and some other
>>> projects use.
>>>
>>> I do find it inconvinient that it always seems that whatever prefix
>>> you specify has gcc appended to it given all my cross compilers have
>>> gcc-version at the end of their name. That's just how Debian has
>>> generated them for years.
>>
>> GCC itself generates *both* e.g. powerpc-linux-gcc-4.9.0 and
>> powerpc-linux-gcc. Debian has no way to set that to the version
>> you want to use? How inconvenient. You can make an alias of course ;-)
>
> Well I can make a symlink, but certainly in the past (wheezy and older),
> when you build the cross compiler from the debian gcc source package,
> you get architecture-gcc-version as the binary. It used to be they
> used alternatives to setup a symlink to one of the versions installed
> for the cross compiler, but they got rid of that (which I don't really
> miss because I found it always picked the wrong one by default somehow).
>
> But I don't expect any build scripts to deal with that (certainly the
> linux kernel doesn't), and there are perfectly simple ways around the
> problem.
Just to recap then - if we use CROSS_COMPILE rather than CROSS_COMPILER
and add it to the start of the list then everyone is in agreement?
ATB,
Mark.
More information about the OpenBIOS
mailing list