Thursday, 30 August 2012

Re: how does buildsystem choose the correct compiler on crosscompile ?

On 30/08/2012 15:39, John-Mark Bell wrote:
> On Thu, Aug 30, 2012 at 02:34:52PM +0100, Bernd Roesch wrote:
>> Hi,
>>
>> I try to compile libwapcaplet with the new buildsystem on cygwin hostet. gcc is default to X86
>> here.
>> If you want compile for 68k m68k-amigaos-gcc is need.
>>
>> make TARGET=amigaos3
>>
>> But there is no m68k-amigaos-gcc compiler use.
>
> The only place the buildsystem will look for a suitable cross compiler
> is /opt/netsurf/<host-triplet>. If you have installed your cross
> compiler somewhere else, it won't find it automatically, so you will
> have to tell it where to look manually.
>
> You can do this, thus:
>
> make TARGET=amigaos3 CC=m68k-amigaos-gcc LD=m68k-amigaos-gcc

IIRC the traditional way for crosscompiling things is to
export CROSSCOMPILE=m68k-amigaos-
we should add support for it if not yet done.

François.

No comments:

Post a Comment