[fpc-pascal] [ANNOUNCEMENT] fpcup diving deeper into crosscompiling

Jonas Maebe jonas.maebe at elis.ugent.be
Fri Aug 2 16:27:56 CEST 2013


On 02 Aug 2013, at 16:00, Reinier Olislagers wrote:

> c:\development\cross\lib\arm-android\libc.a
> c:\development\cross\lib\arm-android\libc.so
> ...
> c:\development\cross\lib\x86_64-linux\libc.a
> c:\development\cross\lib\x86_64-linux\libc.so

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.


Jonas


More information about the fpc-pascal mailing list