[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
jit/cache tests: Fix link error
From: |
Bruno Haible |
Subject: |
jit/cache tests: Fix link error |
Date: |
Fri, 12 Jan 2024 14:38:06 +0100 |
On FreeBSD 14.0 I see think link error:
cc -ferror-limit=0 -Wno-error -g -O2 -L/home/bruno/lib -L/usr/local/lib -o
test-cache jit/test-cache.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 error.c:194 (../../gllib/error.c:194)
>>> error.o:(error_tail) in archive ../gllib/libgnu.a
>>> referenced by xalloc-die.c:34 (../../gllib/xalloc-die.c:34)
>>> xalloc-die.o:(xalloc_die) in archive ../gllib/libgnu.a
cc: error: linker command failed with exit code 1 (use -v to see invocation)
This patch should fix it.
2024-01-12 Bruno Haible <bruno@clisp.org>
jit/cache tests: Fix link error.
* modules/jit/cache-tests (Makefile.am): Link test-cache with
$(LIBINTL).
diff --git a/modules/jit/cache-tests b/modules/jit/cache-tests
index 14809b5111..aa6f37ce87 100644
--- a/modules/jit/cache-tests
+++ b/modules/jit/cache-tests
@@ -29,3 +29,4 @@ TESTS += test-cache
check_PROGRAMS += test-cache
test_cache_SOURCES = jit/test-cache.c
test_cache_CFLAGS = $(AM_CFLAGS) $(DISABLE_OPENBSD_RETGUARD)
+test_cache_LDADD = $(LDADD) $(LIBINTL)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- jit/cache tests: Fix link error,
Bruno Haible <=