summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/psmisc/files/libintl-link.patch
blob: 698d98a23f99279a7caacaf37c07128ab10539e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Upstream-Status: Inappropriate [configuration]
Signed-off-by: Mei Lei <lei.mei@intel.com>

uClibc needs to link against an external libintl but it doesn't do this by
default. The configure script correctly figures out if this is needed, but
doesn't actually link to the libraries it decides on. This makes it link to
them if they are needed:

--- psmisc-22.13/src/Makefile.am
+++ psmisc-22.13/src/Makefile.am
@@ -25,16 +25,17 @@ endif
 
 
 fuser_SOURCES = fuser.c comm.h signals.c signals.h i18n.h fuser.h
+fuser_LDADD = @INTLLIBS@

 killall_SOURCES = killall.c comm.h signals.c signals.h i18n.h

-killall_LDADD = @SELINUX_LIB@
+killall_LDADD = @SELINUX_LIB@ @INTLLIBS@

 peekfd_SOURCES = peekfd.c

 pstree_SOURCES = pstree.c comm.h i18n.h

-pstree_LDADD = @TERMCAP_LIB@ @SELINUX_LIB@
+pstree_LDADD = @TERMCAP_LIB@ @SELINUX_LIB@ @INTLLIBS@

 prtstat_SOURCES = prtstat.c prtstat.h