On FreeBSD 13.0, a gnulib testdir produces this link error: cc -ferror-limit=0 -g -O2 -L/home/bruno/lib -L/usr/local/lib -o test-hamt test-hamt.o libtests.a ../gllib/libgnu.a libtests.a ../gllib/libgnu.a libtests.a -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm -lm ld: error: undefined symbol: libintl_gettext >>> referenced by xalloc-die.c:34 (../../gllib/xalloc-die.c:34) >>> xalloc-die.o:(xalloc_die) in archive ../gllib/libgnu.a >>> referenced by error.c:195 (../../gllib/error.c:195) >>> error.o:(error_tail) in archive ../gllib/libgnu.a cc: error: linker command failed with exit code 1 (use -v to see invocation)
This patch fixes it. 2021-04-14 Bruno Haible <[email protected]> hamt tests: Fix link error. * modules/hamt-tests (Makefile.am): Link test-hamt against @LIBINTL@. diff --git a/modules/hamt-tests b/modules/hamt-tests index f4f0ea4..679af59 100644 --- a/modules/hamt-tests +++ b/modules/hamt-tests @@ -9,3 +9,4 @@ configure.ac: Makefile.am: TESTS += test-hamt check_PROGRAMS += test-hamt +test_hamt_LDADD = $(LDADD) @LIBINTL@
