Hi Reuben, > In the following text, describing how to use multiple gnulib installations: > > Correspondingly for the programs you will have to add something like > this: > > ... > AM_CPPFLAGS = -I$(top_srcdir)/src/gnulib -I$(top_builddir)/src/gnulib > ... > LIBADD = $(top_builddir)/src/gnulib/libgnutools.la > > should LIBADD be LDADD, since we're talking here about building a program, > not a library?
Right. Thanks for the report. Fixed: 2021-04-12 Bruno Haible <br...@clisp.org> doc: Fix confusion between LIBADD and LDADD. Reported by Reuben Thomas <r...@sc3d.org> in <https://lists.gnu.org/archive/html/bug-gnulib/2021-04/msg00102.html>. * doc/gnulib-tool.texi (Multiple instances): For programs, use LDADD, not LIBADD. diff --git a/doc/gnulib-tool.texi b/doc/gnulib-tool.texi index 97881f1..465bb42 100644 --- a/doc/gnulib-tool.texi +++ b/doc/gnulib-tool.texi @@ -715,7 +715,7 @@ this: ... AM_CPPFLAGS = -I$(top_srcdir)/src/gnulib -I$(top_builddir)/src/gnulib ... -LIBADD = $(top_builddir)/src/gnulib/libgnutools.la +LDADD = $(top_builddir)/src/gnulib/libgnutools.la ... @end example