Mercurial > hg > octave-lyh > gnulib-hg
changeset 9520:bd320f5f4602
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 | ced96e4df8ab |
children | 9e072640eeef |
files | ChangeLog gnulib-tool |
diffstat | 2 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -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 +++ b/gnulib-tool @@ -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 ="