[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: libtool / C++ / inter library dependencies
From: |
Ossama Othman |
Subject: |
Re: libtool / C++ / inter library dependencies |
Date: |
Wed, 27 Sep 2000 15:59:43 -0700 |
User-agent: |
Mutt/1.2.5i |
Hi Michael,
On Mon, Sep 25, 2000 at 10:33:42AM +0200, Michael Forster wrote:
> libb.so depends on liba.so.
>
> Is this possible with any libtool/automake/autoconf version?
Sure.
> I tried without success:
>
> ======================================== Makefile.am
>
> lib_LTLIBRARIES = liba.la libb.la
>
> liba_la_SOURCES = a.cpp
>
> libb_la_SOURCES = b.cpp
> libb_la_LIBADD = liba.la
>
> ========================================
>
> [BTW: which combination of "LIBADD" / "LDADD" / "LDFLAGS" and "liba.la" /
> "-la" should I use?]
>
> Result:
>
> - ->ldd libb.so
> liba.so.0 => ./liba.so.0
> libstdc++.so.2.10.0 => (file not found)
> libm.so.1 => /usr/lib/libm.so.1
> libc.so.1 => /usr/lib/libc.so.1
> libstdc++.so.2.10.0 =>
> /public/packages/programming/gcc-2.95.2/lib/libstdc++.so.2.10.0
> libdl.so.1 => /usr/lib/libdl.so.1
> /usr/platform/SUNW,Ultra-250/lib/libc_psr.so.1
>
> Please note the second line.
Maybe I'm missing something but isn't that exactly what you wanted,
i.e. libb.so does indeed appear to depend on liba.so (liba.so.0)?
-Ossama
--
Ossama Othman <address@hidden>
Distributed Object Computing Laboratory, Univ. of California at Irvine
1024D/F7A394A8 - 84ED AA0B 1203 99E4 1068 70E6 5EB7 5E71 F7A3 94A8