1 From 008e7dc0ae46281360be62b7d69cd13e0a7f7e14 Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Sun, 7 Feb 2016 18:24:35 +0100
4 Subject: [PATCH] Link against libintl when needed
6 Since the kbd code uses gettext functionality, it should link with the
7 libintl library using the @INTLLIBS@ symbol provided by the gettext m4
8 macro. This is necessary on C libraries that don't provide a built-in
9 gettext functionality, and rely on the libintl library provided by
10 gettext, as is the case with the uClibc C library.
12 @INTLLIBS@ is empty when linking a separate library is not needed, as
13 is the case with the glibc C library.
15 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
17 src/Makefile.am | 2 +-
18 tests/Makefile.am | 2 +-
19 2 files changed, 2 insertions(+), 2 deletions(-)
21 diff --git a/src/Makefile.am b/src/Makefile.am
22 index 40e8083..d4e0583 100644
25 @@ -80,7 +80,7 @@ mapscrn_CFLAGS = -DMAIN
26 loadunimap_CFLAGS = -DMAIN
28 noinst_LIBRARIES = libcommon.a libfont.a
29 -LDADD = libcommon.a libfont.a libkeymap/libkeymap.la
30 +LDADD = libcommon.a libfont.a libkeymap/libkeymap.la @INTLLIBS@
33 for i in psfaddtable psfgettable psfstriptable; do \
34 diff --git a/tests/Makefile.am b/tests/Makefile.am
35 index 1976333..848fd31 100644
36 --- a/tests/Makefile.am
37 +++ b/tests/Makefile.am
38 @@ -4,7 +4,7 @@ AM_CPPFLAGS = \
39 -DDATADIR=\"$(srcdir)\" -DBUILDDIR=\"$(builddir)\"
41 AM_CFLAGS = $(CHECK_CFLAGS)
42 -LDADD = $(top_builddir)/src/libkeymap/libkeymap.la $(CHECK_LIBS)
43 +LDADD = $(top_builddir)/src/libkeymap/libkeymap.la $(CHECK_LIBS) @INTLLIBS@