Steve M. Robbins writes:

> I expect that one cannot do so in general.  But I'll take a partial
> solution, if there is one.  On linux, at least, "ldd libfoo.so" will
> tell me which other shared objects libfoo links against, so this
> info is embedded in the shared object.

If the info is embedded in the shared object then your work is done
because the dynamic loader will automatically load the dependent libraries
at run-time.  The case you're concerned about is when this has not been
done (shame on that package), or you're dealing with static libraries.

Unfortunately it's hardly possible to automatically detect dependencies
that have not been declared anywhere by a means other than trying out all
possible candidates.

-- 
Peter Eisentraut   [EMAIL PROTECTED]   http://funkturm.homeip.net/~peter


Reply via email to