Andreas Jellinghaus <[EMAIL PROTECTED]> writes:

> On Wed, 24 Mar 2004 06:09:22 +0100, Ralph Schleicher wrote:
> > In my projects, libA1_la_LIBADD = ../B/libB.la works as
> > expected by you.  I'm using libtool 1.5 on Linux, HP-UX,
> > Solaris, and Windows (MinGW).
>
> that will dynamicaly link to libB,
> ldd libA1.so will show it uses libB.so.
> I don't want that. The inidividual parts used
> to create libA1.so should not be visible.

Note to the list:

Andreas and me know each other back from 1994 when Linux
was young and building shared libraries was a real challenge.
I've sent Andreas an example project by email demonstrating
the proper use of Automake and Libtool for his case.
For short:

$ cat Makefile.am
SUBDIRS = B A1 A2
$ cat B/Makefile.am
noinst_LTLIBRARIES = libB.la

libB_la_SOURCES = B.c
$ cat A1/Makefile.am
lib_LTLIBRARIES = libA1.la

libA1_la_SOURCES = A1.c
libA1_la_LDFLAGS = -version-info 0:0:0
libA1_la_LIBADD = ../B/libB.la
$ cat A2/Makefile.am
lib_LTLIBRARIES = libA2.la

libA2_la_SOURCES = A2.c
libA2_la_LDFLAGS = -version-info 0:0:0
libA2_la_LIBADD = ../B/libB.la

-- 
Ralph

4142 days of Linux experience.


_______________________________________________
Libtool mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/libtool

Reply via email to