then run regular fpcup
followed by the cross compiler version:
fpcup --cputarget=i386 --ostarget=linux
Now continuing to work on:
Contributions for other cross compilers are welcome - see the
m_cross*.pas units for simple examples (you only need to fill in the
code that checks for the proper binutils and crosslibs in the right
That is only guaranteed to produce binaries that will work correctly on whatever distribution these *.so files come from (linking against the static versions will in principle work fine anywhere, although there have been some bug reports about statically linking FPC programs to libc). You cannot distribute a "generic" version of Linux shared libraries libraries to which you can link and after which the result will always work anywhere. It may work most of the time, but definitely not always and should not be promoted. Developers should always link against the libraries from the Linux distribution/version they want to support.
Re: [ANNOUNCEMENT] fpcup diving deeper into crosscompiling
On 02/08/2013 16:27, Jonas Maebe wrote:
> That is only guaranteed to produce binaries that will work correctly
> on whatever distribution these *.so files come from
> Developers should
> always link against the libraries from the Linux distribution/version
> they want to support.
Yes, that is why fpcup does not automatically download any .so/.a files.
Users can download whatever libraries they want. fpcup will check for a
couple of filenames to see if attempting the cross compile makes sense
and go. It does not force a certain library version.
The crossfpc package is a nice way to get a lot of cross compiling
binutils in one go... having some libs is a bonus.
NB: currently working on modifying fpc.cfg for cross compilation. Had
forgotten about that :)
Keep up the good work. When you get to android + arm please keep me advised. I will be providing the next version of my framework in a few days and the version after that will be focused on getting android + arm projects working.
fpc-pascal maillist - [hidden email] http://lists.freepascal.org/mailman/listinfo/fpc-pascal