bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

hamt tests: Fix link error


From: Bruno Haible
Subject: hamt tests: Fix link error
Date: Thu, 15 Apr 2021 03:24:09 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-206-generic; KDE/5.18.0; x86_64; ; )

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@




reply via email to

[Prev in Thread] Current Thread [Next in Thread]