The unit tests fail to link on *BSD and other platforms. This patch should fix it:
2025-06-30 Bruno Haible <br...@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. diff --git a/modules/options b/modules/options index 2e73ce886e..97a3211572 100644 --- a/modules/options +++ b/modules/options @@ -17,6 +17,9 @@ lib_SOURCES += options.c Include: "options.h" +Link: +$(LTLIBINTL) when linking with libtool, $(LIBINTL) otherwise + License: GPL diff --git a/modules/options-tests b/modules/options-tests index 23f618d3ee..babc34c71e 100644 --- a/modules/options-tests +++ b/modules/options-tests @@ -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)