[fpc-devel] Cross-compile compiler itself

Jonas Maebe jonas.maebe at elis.ugent.be
Thu Aug 8 12:54:51 CEST 2013


On 08 Aug 2013, at 12:51, Joost van der Sluis wrote:

> How can I cross-compile the compiler itself? I tried it by:
>
> make clean all CPU_TARGET=arm
>
> Then:
> make all CPU_TARGET=arm PP=ppcrossarm
>
> But that one failes, because the first step it does is compiling the  
> rtl for the host platform (x86_64). Which fails when ppcrossarm is  
> used for that...
>
> There has to be a way, but how?

After the first command, there is already a cross-compiled compiler in  
the compiler subdirectory (called ppcarm).


Jonas



More information about the fpc-devel mailing list