]> granicus.if.org Git - psmisc/commitdiff
pstree: Linking with libintl.
authorBreno Leitao <brenohl@br.ibm.com>
Thu, 6 Apr 2017 17:03:00 +0000 (14:03 -0300)
committerCraig Small <csmall@enc.com.au>
Sat, 5 May 2018 22:11:26 +0000 (08:11 +1000)
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)

Makefile.am

index fe72eab0aba9f8ce008d14059bff9f02740f9c59..d32ddde5ff053e9bfa7b59ad9b3252a47b280fa1 100644 (file)
@@ -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@