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
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to