Hi,

Andreas Rottmann <a.rottm...@gmx.at> writes:

> l...@gnu.org (Ludovic Courtès) writes:
>>
>> Aidan Gauland <aidal...@no8wireless.co.nz> writes:
>>
>>> I'm trying to use SDL through Guile's dynamic FFI.  There's a slight
>>> nuisance with the procedure `dynamic-link': the name of the so file on
>>> my system (Debian squeeze) is `libSDL-1.2.so.0'
>>
>> Isn’t it a packaging bug?  There should be a
>> ‘libSDL-1.2.so’ -> ‘libSDL-1.2.so.0’ symlink.
>>
> Only in the -dev package, which should not be required for running Guile
> programs that excercise the FFI.  It is also good practice to use the
> entire SONAME of the library in the Guile program, as to avoid random
> breakage when the ABI changes (which does imply a SONAME bump on
> sanely-maintained libraries).

Unfortunately, I think this cannot be done portably, because the mapping
of a library’s set of supported interfaces to the SONAME and file name
is system-dependent, at least when using Libtool.

Thanks,
Ludo’.

Reply via email to