summaryrefslogtreecommitdiff
path: root/gnulib-tool
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2020-11-07 21:07:04 +0100
committerBruno Haible <bruno@clisp.org>2020-11-07 21:07:04 +0100
commitf570a82be35e36832adf0344d8d4e983c8db9e1a (patch)
treec0fb549e83c9babfcf86b88b4c11fab2aa487538 /gnulib-tool
parentc59c21ad62b3c6c8151bc62b7a28776b6c067293 (diff)
downloadgnulib-f570a82be35e36832adf0344d8d4e983c8db9e1a.tar.gz
gnulib-tool: Fix link error with 'version-etc' (regression 2020-05-29).
Reported by Simon Josefsson in <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00032.html>. * gnulib-tool (func_emit_tests_Makefile_am): Add libtests.a to LDADD a third time, after the second occurrence of ../lib/libgnu.a. * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
Diffstat (limited to 'gnulib-tool')
-rwxr-xr-xgnulib-tool7
1 files changed, 4 insertions, 3 deletions
diff --git a/gnulib-tool b/gnulib-tool
index 1ce9c30894..8b7e305dd2 100755
--- a/gnulib-tool
+++ b/gnulib-tool
@@ -4170,11 +4170,12 @@ func_emit_tests_Makefile_am ()
# It needs to be passed to the linker before ${libname}.${libext}, since
# the tests-related modules depend on the main modules.
# It also needs to be passed to the linker after ${libname}.${libext}
- # because the latter might contain incomplete modules (such as the 'error'
- # module whose dependency to 'progname' is voluntarily omitted).
+ # because the latter might contain incomplete modules (such as the
+ # 'version-etc' module whose dependency to 'version-etc-fsf' is voluntarily
+ # omitted).
# The LIBTESTS_LIBDEPS can be passed to the linker once or twice, it does
# not matter.
- echo "LDADD = libtests.a ${testsbase_inverse}/${sourcebase-lib}/${libname}.${libext} libtests.a ${testsbase_inverse}/${sourcebase-lib}/${libname}.${libext} \$(LIBTESTS_LIBDEPS)"
+ echo "LDADD = libtests.a ${testsbase_inverse}/${sourcebase-lib}/${libname}.${libext} libtests.a ${testsbase_inverse}/${sourcebase-lib}/${libname}.${libext} libtests.a \$(LIBTESTS_LIBDEPS)"
else
echo "LDADD = ${testsbase_inverse}/${sourcebase-lib}/${libname}.${libext}"
fi