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 _______________________________________________ Libtool mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/libtool