In a testdir of the 'lchmod' module, I get this error:

gcc  -g -O2  -o test-lchmod test-lchmod.o libtests.a ../gllib/libgnu.a 
libtests.a ../gllib/libgnu.a libtests.a  @LIBINTL@ 
gcc: error: @LIBINTL@: No such file or directory
make[4]: *** [Makefile:2563: test-lchmod] Error 1

This patch fixes it.


2021-01-10  Bruno Haible  <br...@clisp.org>

        lchmod-tests: Fix link error.
        * modules/lchmod-tests (Makefile.am): Don't assume that LIBINTL is set.

diff --git a/modules/lchmod-tests b/modules/lchmod-tests
index cbb2537..446b2d9 100644
--- a/modules/lchmod-tests
+++ b/modules/lchmod-tests
@@ -10,4 +10,4 @@ configure.ac:
 Makefile.am:
 TESTS += test-lchmod
 check_PROGRAMS += test-lchmod
-test_lchmod_LDADD = $(LDADD) @LIBINTL@
+test_lchmod_LDADD = $(LDADD) $(LIBINTL)


Reply via email to