[Top][All Lists]

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

Re: error, verror: Add tests

From: Bruno Haible
Subject: Re: error, verror: Add tests
Date: Sat, 14 Jan 2023 20:32:16 +0100

Building an m4 snapshot on FreeBSD, with GNU gettext installed, I see a
link error of 'test-error', regarding the symbol 'libintl_gettext'.
This patch should fix it.

2023-01-14  Bruno Haible  <bruno@clisp.org>

        error, verror tests: Fix link error when the package uses libintl.
        * modules/error-tests (Makefile.am): Link test-error with $(LIBINTL).
        * modules/verror-tests (Makefile.am): Link test-verror with $(LIBINTL).

diff --git a/modules/error-tests b/modules/error-tests
index c0cef0f9b6..58369089e3 100644
--- a/modules/error-tests
+++ b/modules/error-tests
@@ -10,3 +10,4 @@ configure.ac:
 TESTS += test-error.sh
 check_PROGRAMS += test-error
+test_error_LDADD = $(LDADD) $(LIBINTL)
diff --git a/modules/verror-tests b/modules/verror-tests
index e02309658a..bd76d768c1 100644
--- a/modules/verror-tests
+++ b/modules/verror-tests
@@ -10,3 +10,4 @@ configure.ac:
 TESTS += test-verror.sh
 check_PROGRAMS += test-verror
+test_verror_LDADD = $(LDADD) $(LIBINTL)

reply via email to

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