summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArsen Arsenović <arsen@aarsen.me>2022-11-12 16:29:48 +0100
committerMike Frysinger <vapier@gentoo.org>2022-11-16 21:20:05 +0700
commit9699739e9a2aa23ca68a556059457ee06611c197 (patch)
tree709fce573f8cea2837cd7d1e2770db7080298cad
parent53f267f4f315707ac25f4b5201d0e393cece4b7a (diff)
downloadacl-9699739e9a2aa23ca68a556059457ee06611c197.tar.gz
Add $(LTLIBINTL) to libacl_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--libacl/Makemodule.am4
-rw-r--r--tools/Makemodule.am2
2 files changed, 4 insertions, 2 deletions
diff --git a/libacl/Makemodule.am b/libacl/Makemodule.am
index c35214c..604f829 100644
--- a/libacl/Makemodule.am
+++ b/libacl/Makemodule.am
@@ -74,7 +74,9 @@ INTERNAL_CFILES = \
libacl_la_DEPENDENCIES = exports libmisc.la
libacl_la_SOURCES = $(CFILES) $(HFILES)
-libacl_la_LIBADD = -lattr libmisc.la
+## Since libacl translates its error messages, we have to link libintl.
+## See the AM_GNU_GETTEXT documentation for details.
+libacl_la_LIBADD = -lattr libmisc.la $(LTLIBINTL)
libacl_la_CFLAGS = $(AM_CFLAGS) -include $(srcdir)/libacl/perm_copy.h
libacl_la_LDFLAGS = \
-Wl,--version-script,$(top_srcdir)/exports \
diff --git a/tools/Makemodule.am b/tools/Makemodule.am
index 60a9a2d..5475234 100644
--- a/tools/Makemodule.am
+++ b/tools/Makemodule.am
@@ -1,4 +1,4 @@
-tools_ldadd = $(LDADD) libacl.la libmisc.la
+tools_ldadd = libacl.la libmisc.la $(LTLIBINTL)
bin_PROGRAMS += chacl
chacl_SOURCES = tools/chacl.c