[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Build errors on Solaris
From: |
Bruno Haible |
Subject: |
Re: Build errors on Solaris |
Date: |
Tue, 17 Nov 2020 02:31:34 +0100 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-193-generic; KDE/5.18.0; x86_64; ; ) |
Tom Christensen wrote:
> Undefined first referenced
> symbol in file
> libintl_gettext ../gllib/libgnu.a(xalloc-die.o)
This patch should fix it.
2020-11-16 Bruno Haible <bruno@clisp.org>
Fix link errors on platforms with libintl (e.g. Solaris and AIX).
Reported by Tom G. Christensen <tgc@jupiterrise.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.
* modules/getumask-tests (Makefile.am): Link test-getumask with
$(LIBINTL).
* modules/stack-tests (Makefile.am): Link test-stack with $(LIBINTL).
* modules/supersede-tests (Makefile.am): Link test-supersede with
$(LIBINTL).
* modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
$(LIBINTL).
diff --git a/modules/getumask-tests b/modules/getumask-tests
index efded34..29b91c7 100644
--- a/modules/getumask-tests
+++ b/modules/getumask-tests
@@ -10,4 +10,4 @@ configure.ac:
Makefile.am:
TESTS += test-getumask
check_PROGRAMS += test-getumask
-test_getumask_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME) $(LIB_GETRANDOM)
+test_getumask_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME) $(LIB_GETRANDOM) $(LIBINTL)
diff --git a/modules/stack-tests b/modules/stack-tests
index 308d725..b38e350 100644
--- a/modules/stack-tests
+++ b/modules/stack-tests
@@ -11,3 +11,4 @@ Makefile.am:
TESTS += test-stack
check_PROGRAMS += test-stack
test_stack_SOURCES = test-stack.c
+test_stack_LDADD = $(LDADD) $(LIBINTL)
diff --git a/modules/supersede-tests b/modules/supersede-tests
index 932cd2c..75c886b 100644
--- a/modules/supersede-tests
+++ b/modules/supersede-tests
@@ -19,4 +19,4 @@ configure.ac:
Makefile.am:
TESTS += test-supersede
check_PROGRAMS += test-supersede
-test_supersede_LDADD = $(LDADD) $(LIB_ACL) $(LIB_CLOCK_GETTIME)
$(LIB_GETRANDOM)
+test_supersede_LDADD = $(LDADD) $(LIB_ACL) $(LIB_CLOCK_GETTIME)
$(LIB_GETRANDOM) $(LIBINTL)
diff --git a/modules/unicodeio-tests b/modules/unicodeio-tests
index d771ff8..aa5803c 100644
--- a/modules/unicodeio-tests
+++ b/modules/unicodeio-tests
@@ -18,4 +18,4 @@ gt_LOCALE_ZH_CN
Makefile.am:
TESTS += test-unicodeio1.sh test-unicodeio2.sh test-unicodeio3.sh
check_PROGRAMS += test-unicodeio
-test_unicodeio_LDADD = $(LDADD) $(LIB_SETLOCALE) $(LIBICONV)
+test_unicodeio_LDADD = $(LDADD) $(LIB_SETLOCALE) $(LIBICONV) $(LIBINTL)