bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
* hamt tests: Fix link error
@ 2021-04-15  1:24 Bruno Haible
  0 siblings, 0 replies; only message in thread
From: Bruno Haible @ 2021-04-15  1:24 UTC (permalink / raw)
  To: bug-gnulib

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  <bruno@clisp.org>

	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@



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-15  1:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-15  1:24 hamt tests: Fix link error Bruno Haible

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).