Discussion:
unicase/locale-language: fix link dependencies
Bruno Haible
2017-07-16 13:19:45 UTC
Permalink
The 'unicase/locale-language' module depends on the 'localename' module;
therefore it needs to include the same link dependencies. And likewise
for the test program; otherwise I get a link error with LDFLAGS="-static".


2017-07-16 Bruno Haible <***@clisp.org>

unicase/locale-language: Fix link dependencies.
* modules/unicase/locale-language (Link): New section.
* modules/unicase/locale-language-tests (Makefile.am): Link
test-locale-language program with $(LIBTHREAD).

diff --git a/modules/unicase/locale-language b/modules/unicase/locale-language
index f32c010..706f94d 100644
--- a/modules/unicase/locale-language
+++ b/modules/unicase/locale-language
@@ -29,6 +29,10 @@ EXTRA_DIST += unicase/locale-languages.h
Include:
"unicase.h"

+Link:
+@INTL_MACOSX_LIBS@
+$(LTLIBTHREAD) when linking with libtool, $(LIBTHREAD) otherwise
+
License:
LGPLv3+ or GPLv2

diff --git a/modules/unicase/locale-language-tests b/modules/unicase/locale-language-tests
index 87f3eaf..2cf5926 100644
--- a/modules/unicase/locale-language-tests
+++ b/modules/unicase/locale-language-tests
@@ -23,4 +23,4 @@ TESTS += unicase/test-locale-language.sh
TESTS_ENVIRONMENT += LOCALE_FR='@LOCALE_FR@' LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' LOCALE_JA='@LOCALE_JA@' LOCALE_TR_UTF8='@LOCALE_TR_UTF8@' LOCALE_ZH_CN='@LOCALE_ZH_CN@'
check_PROGRAMS += test-locale-language
test_locale_language_SOURCES = unicase/test-locale-language.c
-test_locale_language_LDADD = $(LDADD) $(LIBUNISTRING) @INTL_MACOSX_LIBS@
+test_locale_language_LDADD = $(LDADD) $(LIBUNISTRING) @INTL_MACOSX_LIBS@ $(LIBTHREAD)
Loading...