Go to the first, previous, next, last section, table of contents.
Since version 1.2c, libtool has re-introduced the ability to do inter-library dependency on some platforms, thanks to a patch by Toshio Kuratomi badger@prtr-13.ucsc.edu. Here's a shortened version of the message that contained his patch:
The basic architecture is this: in `libtool.m4', the person who writes libtool makes sure `$deplibs' is included in `$archive_cmds' somewhere and also sets the variable `$deplibs_check_method', and maybe `$file_magic_cmd' when `deplibs_check_method' is file_magic.
`deplibs_check_method' can be one of five things:
egrep
. When
file_magic_test_file is set by `libtool.m4', it is used as an
argument to `$file_magic_cmd' in order to verify whether the
regular expression matches its output, and warn the user otherwise.
ldd
. It is currently unused, and will probably be dropped in the
future.
Then in `ltmain.in' we have the real workhorse: a little initialization and postprocessing (to setup/release variables for use with eval echo libname_spec etc.) and a case statement that decides which method is being used. This is the real code... I wish I could condense it a little more, but I don't think I can without function calls. I've mostly optimized it (moved things out of loops, etc) but there is probably some fat left. I thought I should stop while I was ahead, work on whatever bugs you discover, etc before thinking about more than obvious optimizations.
Go to the first, previous, next, last section, table of contents.