[fpc-devel] Can you cross compile from Intel OS X to Linux?

Jonas Maebe jonas.maebe at elis.ugent.be
Wed Apr 1 10:20:22 CEST 2009


On 01 Apr 2009, at 04:39, Chas. Owens wrote:

> Is it possible to cross compile a Pascal program from Intel OS X to
> Intel Linux using fpc?

Yes, but you first need
a) cross-compiled GNU binutils for targeting Linux
b) compile the FPC units for the Linux target

 From a previous mail (to fpc-pascal):

***
You have compile and install the GNU binutils for Linux/i386 (or Linux/ 
powerpc) by downloading the binutils sources, unpacking them, and  
executing the following commands in the resulting directory:
./configure --target=i386-linux-gnu
make
sudo make install

(use "--target=powerpc-linux-gnu" for powerpc)

Then compile the rtl and all other units for this target ("make  
CPU_TARGET=i386 OS_TARGET=linux all" or so in the top level FPC  
directory). See http://www.stack.nl/~marcov/buildfaq.pdf for more  
information.
***


Jonas



More information about the fpc-devel mailing list