On Tue, Jan 16, 2001 at 12:25:35PM +0100, Danny Backx wrote:
> Hmm. I didn't pay enough attention. Inter-*library* is not in the clients
> of course.
> 
> I've pasted the relevant section of the libtool manual below. Does this
> work ? You are using libtool 1.3 aren't you ?
> 
>       Danny

libtool 1.3.4/5 seems to be on the first 3 systems I've checked.
 
> 
> Node:Inter-library dependencies 
> 
> Inter-library dependencies
> 
> By definition, every shared library system provides a way for executables to 
> depend on libraries,
> so that symbol resolution is deferred until runtime. 
> 
> An inter-library dependency is one in which a library depends on other 
> libraries. For example, if
> the libtool library libhello uses the cos function, then it has an 
> inter-library dependency on
> libm, the math library that implements cos. 
> 
> Some shared library systems provide this feature in an internally-consistent 
> way: these systems
> allow chains of dependencies of potentially infinite length. 
> 
> However, most shared library systems are restricted in that they only allow a 
> single level of
> dependencies. In these systems, programs may depend on shared libraries, but 
> shared libraries
> may not depend on other shared libraries. 
> 
> In any event, libtool provides a simple mechanism for you to declare 
> inter-library dependencies:
> for every library libname that your own library depends on, simply add a 
> corresponding -lname
> option to the link line when you create your library. To make an example of our 
> libhello that
> depends on libm: 
> 
> burger$ libtool gcc -g -O -o libhello.la foo.lo hello.lo \
>                 -rpath /usr/local/lib -lm
> burger$

Since we don't run libtool interactively we just put this to the
LIBADD flags accordingly!? However the example is dones using an installed lib 
being libmath.*. 
As indicated my version 
libDt_la_LIBADD = -L../Xm-2.1/.libs -lXm
seems to work, but I just can't see this documented here.

> When you link a program against libhello, you don't need to specify the same -l 
> options again:
> libtool will do that for you, in order to guarantee that all the required 
> libraries are found. This
> restriction is only necessary to preserve compatibility with static library 
> systems and simple
> dynamic library systems. 
[...]

See the discussion when I added -lm to the libXm.

-- 
Alexander Mai
[EMAIL PROTECTED]

Reply via email to