>From a98852a669c5df89a0c611cc9324be32e6d05c0e Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Sat, 31 Aug 2013 08:50:47 +0200 Subject: [PATCH 6/9] 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 --- Makefile.am | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 1d08dd08b19a56017fbff908811e6a58ab0f7a74..e43518ed538abef60f4a644ae4458c2f3c939fa1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -357,6 +357,7 @@ PYTHON_BINDINGS_LIBS = \ $(TDB_LIBS) TOOLS_LIBS = \ + $(LTLIBINTL) \ $(TALLOC_LIBS) \ $(TEVENT_LIBS) \ $(POPT_LIBS) \ @@ -507,8 +508,10 @@ if BUILD_SUDO SSSD_DOCS += libsss_sudo_doc endif +CLIENT_LIBS = $(LTLIBINTL) + if HAVE_PTHREAD -CLIENT_LIBS = -lpthread +CLIENT_LIBS += -lpthread endif ##################### -- 1.8.3.1