[fpc-devel] test suite, problem with missing libraries on the target
Jonas Maebe
jonas.maebe at elis.ugent.be
Mon May 30 11:40:53 CEST 2011
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
More information about the fpc-devel
mailing list