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 that. _______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
