[fpc-devel] Portability Standards
Florian Klaempfl
F.Klaempfl at gmx.de
Tue Jan 4 13:49:05 CET 2005
Marco van de Voort wrote:
>>On Tue, 04 Jan 2005 02:14:33 +0100, DrDiettrich wrote
>> .
>>
>>>I only don't know how to implement or check the other branches - is the
>>>Windows version of FPC equipped for crosscompilation?
>>
>>The compiler itself can compile for all platforms listed in help pages
>>(those running on the same CPU). However, you need GNU tools (as & ld at
>>least) for every target - some of them are pre-built for you and can be
>>downloaded from ftp://ftp.freepascal.org/pub/fpc/contrib/cross/.
>>Alternatively, you can compile with "-s" parameter, which gives you the
>>generated assembler code for your source files and scripts necessary to
>>assemble&link somewhere where the right tools are available (like the
>>target platform itself).
>
>
> crosscompilation from windows to unix using libraries is also not that easy.
I did it already for arm/linux: simply copy the *.a files to win32 and
pass the path with -Fl to the compiler.
More information about the fpc-devel
mailing list