libtool
[Top][All Lists]
Advanced

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

What about adding lt_dlopen_interface(lib, number)?


From: Rob Browning
Subject: What about adding lt_dlopen_interface(lib, number)?
Date: Sat, 17 Nov 2001 14:45:34 -0600
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.1

How would people feel about the addition of a new function 

  lt_dlhandle lt_dlopen_interface(const char *name, int interface_number);

which would return a handle to a library satisfying the given
interface_number or NULL if no such library is available in the search
path.

Without this, there's no way to (portably) make sure you get the
actual library you need.  You just get first-available, which might be
the wrong one.

Further, the job this function is intended to handle is not one that
the calling code could easily implement, since only libtool is
supposed to know the architecture specific details regarding a given
library's filename, and since libtool should probably be solely
responsible for deciding which library versions satisfy which
interfaces.

So you would say:

  lib = lt_dlopen_interface("libsomething" 4);

Trying to solve this problem outside libtool seems likely to involve
fairly awkward library filesystem placement, and LD_LIBRARY_PATH
tricks.

If people think this is a good idea, I'd be happy to help write the
code.

Thanks

-- 
Rob Browning
rlb @defaultvalue.org, @linuxdevel.com, and @debian.org
Previously @cs.utexas.edu
GPG=1C58 8B2C FB5E 3F64 EA5C  64AE 78FE E5FE F0CB A0AD



reply via email to

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