[fpc-devel] fpc libraries do not work in freeBSD...
pascaldragon at googlemail.com
Tue Aug 5 22:45:26 CEST 2014
Am 05.08.2014 20:37 schrieb "Sergei Gorelkin" <sergei_gorelkin at mail.ru>:
> 05.08.2014 22:02, Sven Barth пишет:
>> Am 05.08.2014 15:35 schrieb "Marco van de Voort" <marcov at stack.nl
<mailto:marcov at stack.nl>>:
>> > But the FPC version has these symbols in the main program, maybe you
>> > make sure that those (operatingsystem*) systems are available from the
>> > mainprogram too and preloaded with the proper values.
>> The main program should not need to do anything here. It's more likely
that there is a problem in
>> our FreeBSD startup files for libraries.
> 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...
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-devel