1
0
mirror of https://https.git.savannah.gnu.org/git/gnulib.git synced 2026-04-28 06:33:36 +00:00

regex: Fix link error on macOS and FreeBSD (regression yesterday).

* modules/regex (Link): Add $(LIBUNISTRING), $(LIBC32CONV).
* modules/regex-tests (Makefile.am): Link test-regex with
$(LIBUNISTRING) and $(LIBC32CONV).
This commit is contained in:
Bruno Haible
2026-04-25 11:26:37 +02:00
parent b71d745ac2
commit e2fb3d721a
3 changed files with 10 additions and 1 deletions

View File

@@ -70,7 +70,9 @@ Include:
<regex.h>
Link:
$(LTLIBUNISTRING) when linking with libtool, $(LIBUNISTRING) otherwise
$(MBRTOWC_LIB)
$(LTLIBC32CONV) when linking with libtool, $(LIBC32CONV) otherwise
$(LIBTHREAD)
$(LTLIBINTL) when linking with libtool, $(LIBINTL) otherwise

View File

@@ -14,4 +14,4 @@ AC_CHECK_DECLS_ONCE([alarm])
Makefile.am:
TESTS += test-regex
check_PROGRAMS += test-regex
test_regex_LDADD = $(LDADD) $(SETLOCALE_LIB) $(MBRTOWC_LIB) @LIBINTL@ $(LIBTHREAD)
test_regex_LDADD = $(LDADD) $(LIBUNISTRING) $(SETLOCALE_LIB) $(MBRTOWC_LIB) @LIBINTL@ $(LIBC32CONV) $(LIBTHREAD)