From: Breno Leitao Date: Thu, 6 Apr 2017 17:03:00 +0000 (-0300) Subject: pstree: Linking with libintl. X-Git-Tag: v23.2~15^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0ccd66ecd204c4036430a630a284a52722f748e2;p=psmisc pstree: Linking with libintl. Curently pstree does built, at least on ppc64le, because it does not have a explicit link against gettext, causing the following error: peekfd.o: In function `print_version': peekfd.c:(.text+0x160): undefined reference to `libintl_gettext' peekfd.c:(.text+0x18c): undefined reference to `libintl_gettext' peekfd.c:(.text+0x1ac): undefined reference to `libintl_gettext' peekfd depends on libint because of the following macro: #define _(String) gettext (String) --- diff --git a/Makefile.am b/Makefile.am index fe72eab..d32ddde 100644 --- a/Makefile.am +++ b/Makefile.am @@ -65,6 +65,7 @@ src_fuser_LDADD = @LIBINTL@ src_killall_SOURCES = src/killall.c src/comm.h src/signals.c src/signals.h src/i18n.h src_killall_LDADD = @LIBINTL@ @SELINUX_LIB@ src_peekfd_SOURCES = src/peekfd.c +src_peekfd_LDADD = @LIBINTL@ src_pslog_SOURCES = src/pslog.c src_pstree_SOURCES = src/pstree.c src/comm.h src/i18n.h src_pstree_LDADD = @LIBINTL@ @TERMCAP_LIB@ @SELINUX_LIB@