[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: The automake/libtool way to make a dynamic lib from multiple sources
From: |
Ralf Wildenhues |
Subject: |
Re: The automake/libtool way to make a dynamic lib from multiple sources |
Date: |
Thu, 28 Sep 2006 13:06:22 +0200 |
User-agent: |
Mutt/1.5.13 (2006-09-08) |
Hello Ryan,
* Ryan McDougall wrote on Thu, Sep 28, 2006 at 11:30:32AM CEST:
> On Thu, 2006-09-28 at 18:23 +0900, Ryan McDougall wrote:
> >
> > How can I either
> > 1. Express to automake the correct dependancy
By writing
libA_la_LIBADD = libfoo.la
instead of
libA_la_LIBADD = -L. -lfoo
> I just discovered that I can trick automake with this:
>
> zardir=/dev/null
> zar_LTLIBRARIES=libfoo.la
> lib_LTLIBRARIES=libA.la
>
> and this will allow libfoo to be built before libA, however this is sort
> of trickery is bound to bite me in the ass somewhere, right?
That is wrong, as it causes libfoo to not be a convenience archive, but
a real, installable library. It's doomed to failure, as the installed
libA may depend on it being present.
Cheers,
Ralf
Re: The automake/libtool way to make a dynamic lib from multiple sources, Ryan McDougall, 2006/09/21