]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
options tests: Fix link error.
authorBruno Haible <bruno@clisp.org>
Mon, 30 Jun 2025 09:22:40 +0000 (11:22 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 30 Jun 2025 09:22:40 +0000 (11:22 +0200)
* modules/options (Link): New section.
* modules/options-tests (Makefile.am): Link test-options and
test-options-prog with LIBINTL.

ChangeLog
modules/options
modules/options-tests

index 2ab8971e51fc491be85b42645861f6cb2daa8391..ffc5512e71c34352248f4eb7de93edb8e5938d43 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2025-06-30  Bruno Haible  <bruno@clisp.org>
+
+       options tests: Fix link error.
+       * modules/options (Link): New section.
+       * modules/options-tests (Makefile.am): Link test-options and
+       test-options-prog with LIBINTL.
+
 2025-06-30  Bruno Haible  <bruno@clisp.org>
 
        _Noreturn: Fix compilation in C++ mode on Solaris (regr. 2025-06-27).
index 2e73ce886ea661cad2e0e7ac9d82deeda0793c87..97a321157250fed3e7d6de314ae58ee6d7397230 100644 (file)
@@ -17,6 +17,9 @@ lib_SOURCES += options.c
 Include:
 "options.h"
 
+Link:
+$(LTLIBINTL) when linking with libtool, $(LIBINTL) otherwise
+
 License:
 GPL
 
index 23f618d3eeb4b343b384c409f834bad78f7f90aa..babc34c71ea9db6cf29ae2bee2019be35aacf357 100644 (file)
@@ -13,4 +13,6 @@ configure.ac:
 Makefile.am:
 TESTS += test-options
 check_PROGRAMS += test-options
+test_options_LDADD = $(LDADD) $(LIBINTL)
 noinst_PROGRAMS += test-options-prog
+test_options_prog_LDADD = $(LDADD) $(LIBINTL)