On Tue, Nov 26, 2024 at 06:56:10PM +0000, Gavin Smith wrote:
> According to the libtool manual, section "Finding the correct name to dlopen"
> (Info node '(libtool)Finding the dlname'),
> 
>   After a library has been linked with ‘-module’, it can be dlopened.

I do not think that the libraries (libtexinfo, libtexinfoxs...) are
linked with -module.

>   Unfortunately, because of the variation in library names, your package
>   needs to determine the correct file to dlopen.
>   
>      The most straightforward and flexible implementation is to determine
>   the name at runtime, by finding the installed ‘.la’ file, and searching
>   it for the following lines:
>   
>        # The name that we can dlopen.
>        dlname='DLNAME'
> 
> Hence it appears to be the most straightforward approach to use dlname.
> Using library_names may also be correct, but using dlname is the
> recommended usage and therefore it makes the most sense to stick to that
> rather than to try to work out whether library_names would make sense
> too.

And probably as importantly, it works, so it is better to keep on doing
like that until there is a case that seems to contradict the
observations...

-- 
Pat

Reply via email to