[fpc-pascal] Cross compiling x86_64 on i386 Linux.

Jonas Maebe jonas.maebe at elis.ugent.be
Mon May 28 15:02:47 CEST 2012


On 28 May 2012, at 14:56, Bruce Tulloch wrote:

> 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?

-XR is for pointing the compiler/linker to the top of a complete sysroot (i.e., a hierarchy with /lib, /usr/lib etc), not to a directory with just few handpicked libraries. For the latter, use the -Fl command line switch instead, possibly combined with -Xd (to prevent the compiler from passing the default system directories as search paths to the linker).

And yes, that should indeed work fine.


Jonas


More information about the fpc-pascal mailing list