libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multi part library?


From: Ralph Schleicher
Subject: Re: multi part library?
Date: 24 Mar 2004 21:43:53 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Andreas Jellinghaus <address@hidden> 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]