On 30 May 2011, at 11:37, Bernd Mueller wrote:

Jonas Maebe wrote:
Windows is not supported as a remote target, but it's indeed not correct for all unix targets either. The prefix of a library is always "lib" on all targets, afaik. The suffix is available via dynlibs.SharedSuffix. The downside of using the dynlibs unit is that it makes the dotest program dependent on libdl (and hence libc) on Linux-targets. I'm not sure about how to best solve this...

One could work with a default suffix ".so" and make this overridable by a new test option for example TEST_LIBRARY_SUFFIX.

Maybe better would be to hardcode .so for Linux and FreeBSD, and use dynlibs.SharedSuffix for all other targets. Most other targets use libc by default anyway (and if new non-libc targets are added or brought back to life, the ifdef can be adjusted in case the libc dependency would cause problems).


Jonas
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to