[fpc-devel] Help on building crosscompiler with fpc 2.3.1

Jonas Maebe jonas.maebe at elis.ugent.be
Sun Sep 28 19:30:51 CEST 2008


On 28 Sep 2008, at 19:24, German Gentile wrote:

> 2008/9/28 Jonas Maebe <jonas.maebe at elis.ugent.be>:
>>> If dont, how i can produce binaries for i386 and x86_64 from a  
>>> x86_64 box?
>>
>> Using an i386->i386 and an i386->X86_64 compiler.
>
> Then i must install in my x86_64 linux system a lazarus ide x86 + fpc
> compiler x86?

An fpc i386 compiler should be enough.

> One time i have working on my x86_64 system the i386 compiler, how to
> produce a crosscompiler allowing produce binary for i386 and x86_64
> binaries?

You have to create two separate compilers: one to create i386 binaries  
and one to create x86_64. In this case you don't even need any cross  
compilers, actually: you can simply use an i386->i386 and an x86_64- 
 >x86_64 compiler.

See the previous messages in this thread for how to compile FPC for a  
particular target platform.


Jonas



More information about the fpc-devel mailing list