diff options
author | Arsen Arsenović <arsen@aarsen.me> | 2022-11-16 16:51:09 +0100 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-11-19 23:15:07 +0700 |
commit | 2979615e71fb53b3f2f9085eea516d4e2b3174ea (patch) | |
tree | 4d060475287f1e00258bad0755fe1f99b03c3879 | |
parent | 25f6aef2f24b186401d603189434f10e467b8c59 (diff) | |
download | attr-2979615e71fb53b3f2f9085eea516d4e2b3174ea.tar.gz |
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.
-rw-r--r-- | libattr/Makemodule.am | 3 | ||||
-rw-r--r-- | tools/Makemodule.am | 2 |
2 files changed, 4 insertions, 1 deletions
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 |