summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/usbutils/usbutils/iconv.patch
blob: c557334a753269cdf475244f19d4f4375c74f3ca (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
31
32
33
34
35
36
37
38
39
40
This patch adds support for detecting iconv support using autotools
uclibc does not have iconv implementation inside libc like glibc, therefore
the existing checks were not sufficient, it worked for glibc but not for
uclibc. The new patch portably detects the iconv support and adds the
libiconv to linker cmdline

This patch should be submitted upstream too

Upstream-Status: Pending

Signed-off-by: Khem Raj <raj.khem@gmail.com>

Index: usbutils-007/configure.ac
===================================================================
--- usbutils-007.orig/configure.ac
+++ usbutils-007/configure.ac
@@ -10,7 +10,9 @@ AC_USE_SYSTEM_EXTENSIONS
 AC_SYS_LARGEFILE
 
 AC_CHECK_HEADERS([byteswap.h])
-AC_CHECK_FUNCS([nl_langinfo iconv])
+
+AM_GNU_GETTEXT
+AM_ICONV
 
 AC_ARG_ENABLE(zlib,
 	AS_HELP_STRING(--disable-zlib,disable support for zlib))
Index: usbutils-007/Makefile.am
===================================================================
--- usbutils-007.orig/Makefile.am
+++ usbutils-007/Makefile.am
@@ -27,7 +27,7 @@ lsusb_CPPFLAGS = \
 	-DDATADIR=\"$(datadir)\"
 
 lsusb_LDADD = \
-	$(LIBUSB_LIBS)
+	$(LIBUSB_LIBS) $(LIBICONV)
 
 if HAVE_ZLIB
 lsusb_CPPFLAGS += -DHAVE_LIBZ