[Top][All Lists]

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

Dynamic linking with automake and libtool

From: James Laird
Subject: Dynamic linking with automake and libtool
Date: Mon, 1 Aug 2005 16:40:16 -0500 (CDT)


I have a project that uses automake and libtool to build a library and a
number of tests for it (  The main library
can be either a static or a shared library; when a shared library, it has
a libtool version number.

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?

Thanks very much,
   James Laird

Please CC me on replies.

reply via email to

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