[fpc-pascal] Re: cross compiling x64_64 to i386 linux

Seth Grover sethdgrover at gmail.com
Tue Nov 3 15:54:37 CET 2009


> You might have to tell it simply NOT to look in /usr/lib
>
> E.g. like described in paragraph 3.4.1 of the buildfaq:
>
> http://www.stack.nl/~marcov/buildfaq.pdf
>
Thank you! That seemed to get me past the rest of my errors.

The final working command was:

/usr/local/bin/fpc -Xd -Pi386 -XPi386-linux- -MObjFPC -Scgi -XX
-vewnhi -l -Fu. -oproject1 project1.lpr

The one other thing I had to do was change one of the lines in fpc.cfg
so that it would look in "/usr/lib/gcc/x86_64-linux-gnu/32/4.4.1"
rather than "/usr/lib/gcc/x86_64-linux-gnu/4.4.1".

So basically I ended up with:

==========================================
#ifdef cpui386
-Fl/usr/lib/gcc/x86_64-linux-gnu/32/4.4.1
-Fl/lib32
-Fl/usr/lib32
#endif
==========================================

I haven't tried to build anything too complicated, but most simple
compilations seem to be working.

Thanks again!

-SG

--
This email is fiction. Any resemblance to actual events
or persons living or dead is purely coincidental.

Seth Grover
sethdgrover[at]gmail[dot]com



More information about the fpc-pascal mailing list