[fpc-devel] OS aware RTL proposal
daniel.mantione at freepascal.org
Sun Mar 12 12:24:17 CET 2006
Op Sun, 12 Mar 2006, schreef Ales Katona:
> Michael Van Canneyt wrote:
> > We don't. We just make the interface available, that's it. It shouldn't be
> > used by default in libfprtl.
> > Michael.
> What about Lazarus/binary packages? I think libfprtl.so is required there.
> If you use syscall version of this lib it's ok. If you use FPC_USE_LIBC
> however, it will cause linking problems on older distroes for example. I
> wonder how do you plan to fix this little problem.
Using libc will by definition cause dependency problems on the libc
version. Add to that that different libc's are more incompatible that just
the linking errors. In other words if you want to support multiple
distributions, you *must* use syscalls.
> I've updated the wiki page to clarify what parts of RTL I wanted to be
> affected etc.
> There's also the "oldselect" problem for example. Might seem like a triviality
> but select() is used for many things (sleep, file IO etc.) which might mean
> FPC binaries would be much slower on 2.6 for example.
You can safely use the new select; it is at least present since Linux 2.2
and more likely 2.0.
More information about the fpc-devel