summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2013-08-31 08:50:47 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-09-09 17:04:36 +0200
commit9c649c805c1cf0a66f9b59ec3d6dc4f53240feb7 (patch)
tree4a9616ea94ba09786946b3666f92fde35808d21d
parented19d0718d6bd6e469ec03f21a3f83e08557b6d6 (diff)
downloadsssd-9c649c805c1cf0a66f9b59ec3d6dc4f53240feb7.tar.gz
sssd-9c649c805c1cf0a66f9b59ec3d6dc4f53240feb7.tar.xz
sssd-9c649c805c1cf0a66f9b59ec3d6dc4f53240feb7.zip
AUTOMAKE: Use portable way to link with gettext
Function gettext needn't be included in libc, it can be part of another library. Autotools macro AM_GNU_GETTEXT generate makefile variables (LIBINTL, LTLIBINTL), which contain necessary linker flags. checking for GNU gettext in libc... no checking for iconv... yes checking for GNU gettext in libintl... yes checking whether to use NLS... yes checking where the gettext function comes from... external libintl
-rw-r--r--Makefile.am5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 04f44ef74..2e1073047 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -333,6 +333,7 @@ PYTHON_BINDINGS_LIBS = \
$(TDB_LIBS)
TOOLS_LIBS = \
+ $(LTLIBINTL) \
$(TALLOC_LIBS) \
$(TEVENT_LIBS) \
$(POPT_LIBS) \
@@ -467,8 +468,10 @@ if BUILD_SUDO
SSSD_DOCS += libsss_sudo_doc
endif
+CLIENT_LIBS = $(LTLIBINTL)
+
if HAVE_PTHREAD
-CLIENT_LIBS = -lpthread
+CLIENT_LIBS += -lpthread
endif
#####################