bug-libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: documentation / behavior discrepancy with lt_dlopenext


From: Andy Wingo
Subject: Re: documentation / behavior discrepancy with lt_dlopenext
Date: Thu, 31 Mar 2011 10:33:11 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

On Thu 31 Mar 2011 03:31, Bob Friesenhahn <address@hidden> writes:

> On Wed, 30 Mar 2011, Andy Wingo wrote:
>>
>> Sure, that's probably right.  However it's tough to tell.  You could
>> look for "\.so(\.|$)" or something.  But that's encoding lots of
>> details.
>>
>> I think that uses of dlopenext are already oblivious to `stat' calls,
>> because they sanction looking for .la files before e.g. .so files, so
>> it's not a problem to just do what the doc says: bare path first, then
>> grovel extensions.
>
> Use of .la files does not incur more stat calls unless the .la file is
> not present.  Using .la files is really a better solution than what you
> are trying to do.

That might well be true!  (I don't know enough of the details.)  However
on most systems that does not work for system libraries like libc.  This
particular bug report came from a user who wanted to link against a
library without installing the -dev package on his OS, so he wouldn't
have .la files anyway.  Not to mention distros that don't install .la
files, like Fedora et al.

Just to clarify the use case.  I see we all agree the current behavior
is a bug :)

Cheers,

Andy
-- 
http://wingolog.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]