[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
libtool / C++ / inter library dependencies
From: |
Michael Forster |
Subject: |
libtool / C++ / inter library dependencies |
Date: |
Mon, 25 Sep 2000 10:33:42 +0200 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I am trying the following:
Shared C++ Library liba.so,
Shared C++ Library libb.so,
libb.so depends on liba.so.
Is this possible with any libtool/automake/autoconf version?
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.
Platforms: Solaris 2.6 + 8, Linux
Versions: various, mostly
autoconf 2.49a,
automake 1.4,
libtool CVS multi-language-branch, some days ago.
gcc-2.95.2
Greetings, Mike
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com>
iQA/AwUBOc7/18eYjj0YYPBiEQKa8wCgq//SvRRI8BG515OiZ1WsJnTWeyEAn0IE
vj062niAdpoe8bYm2h2xGr/J
=DbSZ
-----END PGP SIGNATURE-----
- libtool / C++ / inter library dependencies,
Michael Forster <=