bug-gnulib
[Top][All Lists]
Advanced

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

Re: setlocale: make calls with NULL argument multithread-safe


From: Bruno Haible
Subject: Re: setlocale: make calls with NULL argument multithread-safe
Date: Sat, 21 Dec 2019 13:00:34 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-166-generic; KDE/5.18.0; x86_64; ; )

>       * modules/setlocale-tests (Makefile.am): Link the test programs with
>       $(LIB_SETLOCALE).
> ...
>       * modules/nl_langinfo-tests (Makefile.am): Likewise.

I missed one test program that also calls setlocale().


2019-12-21  Bruno Haible  <address@hidden>

        nl_langinfo tests: Fix link error (regression from 2019-12-18).
        * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
        with $(LIB_SETLOCALE).

diff --git a/modules/nl_langinfo-tests b/modules/nl_langinfo-tests
index 9474bbd..9bf1510 100644
--- a/modules/nl_langinfo-tests
+++ b/modules/nl_langinfo-tests
@@ -20,4 +20,5 @@ Makefile.am:
 TESTS += test-nl_langinfo.sh test-nl_langinfo-mt
 TESTS_ENVIRONMENT += LOCALE_FR='@LOCALE_FR@' LOCALE_FR_UTF8='@LOCALE_FR_UTF8@'
 check_PROGRAMS += test-nl_langinfo test-nl_langinfo-mt
+test_nl_langinfo_LDADD = $(LDADD) $(LIB_SETLOCALE)
 test_nl_langinfo_mt_LDADD = $(LDADD) $(LIB_SETLOCALE) $(LIBMULTITHREAD) 
$(LIB_NANOSLEEP)




reply via email to

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