[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
unicase/locale-language: fix link dependencies
From: |
Bruno Haible |
Subject: |
unicase/locale-language: fix link dependencies |
Date: |
Sun, 16 Jul 2017 15:19:45 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-83-generic; KDE/5.18.0; x86_64; ; ) |
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 <address@hidden>
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:
address@hidden@
+$(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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- unicase/locale-language: fix link dependencies,
Bruno Haible <=