Because automake cat AM_LDFLAGS before LDADD, so just add the
$(top_builddir)/src/libname.la(not in LDADD) as the first resolve the
probelm.


                                                      Changsheng Jiang


On Wed, May 23, 2012 at 4:41 PM, [email protected] <
[email protected]> wrote:

> Hi list,
>
> I have a library project with tests. the test programs run fine when the
> library is not installed. but if the library is installed, and after some
> new interfaces added to the library, the make of test programs run well,
> but running reports the new interfaces not found, as ldd indicating that
> the installed library is used in run.
>
> In short, newest not installed library used in compling and linking, but
> installed older library used in running.
>
>
> http://stackoverflow.com/questions/1168180/why-would-autoconf-automake-project-link-against-installed-library-instead-of-lothis
>  link seems the same problem.
>
> WHY and HOW?
>
> Thanks,
>                                                       Changsheng Jiang
>
_______________________________________________
Autoconf mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to