Subject: Re: inter-library dependencies
To: Berndt Josef Wulf <wulf@dingo.ping.net.au>
From: Frederick Bruckman <fb@enteract.com>
List: port-i386
Date: 11/13/1999 04:39:41
On Sat, 13 Nov 1999, Berndt Josef Wulf wrote:

> what does the warning below mean?
> 
> *** Warning: inter-library dependencies are not known to be supported.
> *** All declared inter-library dependencies are being dropped.
> *** The inter-library dependencies that have been dropped here will be
> *** automatically added whenever a program is linked with this library
> *** or is declared to -dlopen it.

This warning is from pkglibtool, correct?

It's just a warning. It means you can't, with a.out, really link a
library into another library, and then expect that linking the second
library into a program will automatically pull in the first library.
The foolproof way is to add all the dependent libraries to the link
command for the final program. So when you try to link library foo
into library bar, libtool makes a note of it in bar.la and emits this
warning. Now it can do the right thing, that is, "--mode=link -lbar"
becomes "-lbar -lfoo" in the resulting link command.