Go to the first, previous, next, last section, table of contents.


Multiple dependencies

On most modern platforms the order that dependent libraries are listed has no effect on object generation. In theory, there are platforms which require libraries which provide missing symbols to other libraries to listed after those libraries whose symbols they provide.

Particularly, if a pair of static archives each resolve some of the other's symbols, it might be necessary to list one of those archives both before and after the other one. Libtool does not currently cope with this situation well, since dupicate libraries are removed from thr link line.

If you find yourself developing on a host that requires you to list libraries multiple times in order for it to generate correctly linked objects, you can defeat libtool's removal algorithm like this:

$ libtool ... -lfoo -lbar -Wl,-lfoo


Go to the first, previous, next, last section, table of contents.