[fpc-pascal] Cross compiling x86_64 on i386 Linux.
bruce at causal.com
Mon May 28 14:56:48 CEST 2012
Is it possible to cross-compile a Linux/x86_64 target on a Linux/i386
host? AFAICT it should be possible and I've almost got it working (using
Debian's gcc-4.4-multilib for start-up code) but the linker looks for
x86_64 libraries that aren't available on a i386 system.
I'm guessing that libraries for x86_64 do not exist on most i386
distributions (since one can't run x86_64 binaries on a i386 CPU).
Normally one would cross-compile a i386 target on a x86_64 host and use
the i386 compatibility libraries. I want to do it the other way around
(to be able to work on an Atom netbook that does not run x86_64).
Am I correct to assume that if I drag in the x86_64 libraries I need
from another x86_64 system, put them in a local directory and then
reference then using the -XR option I can make this setup work?
Many thanks, Bruce.
More information about the fpc-pascal