From 2979615e71fb53b3f2f9085eea516d4e2b3174ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arsen=20Arsenovi=C4=87?= Date: Wed, 16 Nov 2022 16:51:09 +0100 Subject: Add $(LTLIBINTL) to libattr_LIBADD tools_ldadd On some platforms, libc does not provide gettext, and hence, more work is necessary to get gettext to link. AM_GNU_GETTEXT covers for this case and emits a $(LTLIBINTL) that we can use on those platforms. --- libattr/Makemodule.am | 3 +++ tools/Makemodule.am | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libattr/Makemodule.am b/libattr/Makemodule.am index 1211aba..6a086e3 100644 --- a/libattr/Makemodule.am +++ b/libattr/Makemodule.am @@ -8,6 +8,9 @@ LT_CURRENT = 2 LT_AGE = 1 LTVERSION = $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) +## Since libattr translates its error messages, we have to link libintl. +## See the AM_GNU_GETTEXT documentation for details. +libattr_la_LIBADD = $(LTLIBINTL) libattr_la_DEPENDENCIES = \ exports if OS_LINUX diff --git a/tools/Makemodule.am b/tools/Makemodule.am index 890c11f..6bb99e0 100644 --- a/tools/Makemodule.am +++ b/tools/Makemodule.am @@ -1,4 +1,4 @@ -tools_ldadd = $(LDADD) libattr.la libmisc.la +tools_ldadd = $(LDADD) libattr.la libmisc.la $(LTLIBINTL) bin_PROGRAMS += attr attr_SOURCES = tools/attr.c -- cgit v1.2.1