[fpc-devel] fpc libraries do not work in freeBSD...
Marco van de Voort
marcov at stack.nl
Tue Aug 5 22:49:37 CEST 2014
In our previous episode, Sven Barth said:
> > FreeBSD loader does not pass argc,argv and envp to shared library
> initialization procedure, like it happens on Linux. Since FPC does not have
> a shared RTL, such hack with exporting symbols from executable is likely an
> only way to initialize RTLs compiled into shared libraries.
> And C code does not have that problem, because the program startup code
> initializes libc which other libraries then depend on, right? Grrr...
Because they essentially have a shared RTL in libc, yes.
But note that with a hypothetical shared FPC lib, the problem would be the
same if one of the parts was not written in pascal.
IOW the libc case only works for C programs, and programs that build on
More information about the fpc-devel