Mercurial > gnulib
changeset 29211:f82e2b0c88c3
Avoid link failures with separate libtests.a.
* gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
last, to satisfy circular dependencies.
Signed-off-by: Eric Blake <ebb9@byu.net>
author | Eric Blake <ebb9@byu.net> |
---|---|
date | Mon, 10 Dec 2007 09:54:54 -0700 |
parents | 564750acbe4a |
children | e5d57ef58316 |
files | ChangeLog gnulib-tool |
diffstat | 2 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Tue Dec 11 08:17:24 2007 -0700 +++ b/ChangeLog Mon Dec 10 09:54:54 2007 -0700 @@ -1,3 +1,9 @@ +2007-12-11 Eric Blake <ebb9@byu.net> + + Avoid link failures with separate libtests.a. + * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd + last, to satisfy circular dependencies. + 2007-12-11 Eric Blake <ebb9@byu.net> and Bruno Haible <bruno@clisp.org>
--- a/gnulib-tool Tue Dec 11 08:17:24 2007 -0700 +++ b/gnulib-tool Mon Dec 10 09:54:54 2007 -0700 @@ -1923,7 +1923,10 @@ if $use_libtests; then local_ldadd=' libtests.a $(LIBTESTS_LIBDEPS)' fi - echo "LDADD =${local_ldadd} ${testsbase_inverse}/${sourcebase-lib}/${libname}.${libext}" + # local_ldadd must be listed first, since it often depends on non-test + # modules; it must also be listed last, since it can include modules + # such as progname that satisfy dependencies of non-test modules. + echo "LDADD =${local_ldadd} ${testsbase_inverse}/${sourcebase-lib}/${libname}.${libext}${local_ldadd}" echo if $use_libtests; then echo "libtests_a_SOURCES ="