[Lazarus] cross compiling

Joost van der Sluis joost at cnoc.nl
Mon Feb 2 13:12:13 CET 2009


Op maandag 02-02-2009 om 09:20 uur [tijdzone +0100], schreef Alexander
Kaupp aka tanila:
> 
> thx 4 your answer, but how do I compile for x86_64 on fcp-i386?
> Or do you mean to install 2 FPCs one x64 and one i386?

Yes. On most distributions that's possible.

Or else you could download a ppc386-executable from somewhere, and
compile a plain i386-version yourself:

make clean all PP=../path/to/ppc386
sudo make install PP=compiler/ppc386

Thereafter you'll have a ppcx64 and a ppc386 on your system. Make sure
that both use the same prefix. (/usr/lib/ or /usr/local/lib/)
If one of them insist on using something like /usr/lib64 then you can
add that one to your fpc.cfg manually.

Joost.




More information about the Lazarus mailing list