[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Dynamic linking with automake and libtool
From: |
James Laird |
Subject: |
Re: Dynamic linking with automake and libtool |
Date: |
Wed, 3 Aug 2005 10:29:51 -0500 (CDT) |
On Tue, 2 Aug 2005, Ralf Wildenhues wrote:
> Hi James,
>
> * James Laird wrote on Mon, Aug 01, 2005 at 11:40:16PM CEST:
> >
> > Since all of the tests include the main library (using LDADD), they all
> > depend on that library. Thus, when the main library is changed, all of
> > the tests must be recompiled.
> >
> > It would be nice if, when the library is configured as a shared library,
> > the tests only needed to re-link rather than being completely recompiled.
> > I can't figure out a way to do this short of editing automake itself.
> > Any ideas?
>
> Recompilation should not happen. Show the Makefile.am snippet or a
> pointer to the source which exhibits this problem with a way to
> reproduce it. Sure there is not also a changed header file which is
> included (maybe implicitly) by the test code?
>
> Cheers,
> Ralf
You're right; the problem was that a static convenience library that
dependend on the shared library was getting thrown into the mix, so
relinking needed to happen. If I still have trouble after linking against
only shared libraries I'll write back. :)
Thanks,
James