logo       

Re: multi part library?: msg#00077

gnu.libtool.general

Subject: Re: multi part library?

Andreas Jellinghaus <aj@xxxxxxxxxx> writes:

Hi Andreas,

> if I change B/Makefile.am to
> noinst_LTLIBRARIES=libB.la
> libtool/automake will do what i want.
> libB.a has the non PIC code, .libs/libB.al has the PIC code.

Correct.

> but if I change A1/Makefile.am to
> libA1_la_LIBADD = $(top_builddir)/B/.libs/libB.al
> then libtool will silently ignore it, and not link
> with libB.al

Wrong, you don't know about the .libs directory (and it's
name is _libs on Windows).

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).

--
Ralph

4142 days of Linux experience.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise