Thursday, 30 August 2012

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

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

> I miss a option to set the compiler file name in makefile.top . is it possible to add an Option ?

Makefile.top is toolchain agnostic. All tooling is set up by
Makefile.tools.


J.

No comments:

Post a Comment