summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/usbutils/usbutils/iconv.patch
diff options
context:
space:
mode:
authorTudor Florea <tudor.florea@enea.com>2014-10-16 01:05:19 (GMT)
committerTudor Florea <tudor.florea@enea.com>2014-10-16 01:05:19 (GMT)
commitc527fd1f14c27855a37f2e8ac5346ce8d940ced2 (patch)
treebb002c1fdf011c41dbd2f0927bed23ecb5f83c97 /meta/recipes-bsp/usbutils/usbutils/iconv.patch
downloadpoky-daisy-140929.tar.gz
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-bsp/usbutils/usbutils/iconv.patch')
-rw-r--r--meta/recipes-bsp/usbutils/usbutils/iconv.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/meta/recipes-bsp/usbutils/usbutils/iconv.patch b/meta/recipes-bsp/usbutils/usbutils/iconv.patch
new file mode 100644
index 0000000..c557334
--- /dev/null
+++ b/meta/recipes-bsp/usbutils/usbutils/iconv.patch
@@ -0,0 +1,40 @@
1This patch adds support for detecting iconv support using autotools
2uclibc does not have iconv implementation inside libc like glibc, therefore
3the existing checks were not sufficient, it worked for glibc but not for
4uclibc. The new patch portably detects the iconv support and adds the
5libiconv to linker cmdline
6
7This patch should be submitted upstream too
8
9Upstream-Status: Pending
10
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12
13Index: usbutils-007/configure.ac
14===================================================================
15--- usbutils-007.orig/configure.ac
16+++ usbutils-007/configure.ac
17@@ -10,7 +10,9 @@ AC_USE_SYSTEM_EXTENSIONS
18 AC_SYS_LARGEFILE
19
20 AC_CHECK_HEADERS([byteswap.h])
21-AC_CHECK_FUNCS([nl_langinfo iconv])
22+
23+AM_GNU_GETTEXT
24+AM_ICONV
25
26 AC_ARG_ENABLE(zlib,
27 AS_HELP_STRING(--disable-zlib,disable support for zlib))
28Index: usbutils-007/Makefile.am
29===================================================================
30--- usbutils-007.orig/Makefile.am
31+++ usbutils-007/Makefile.am
32@@ -27,7 +27,7 @@ lsusb_CPPFLAGS = \
33 -DDATADIR=\"$(datadir)\"
34
35 lsusb_LDADD = \
36- $(LIBUSB_LIBS)
37+ $(LIBUSB_LIBS) $(LIBICONV)
38
39 if HAVE_ZLIB
40 lsusb_CPPFLAGS += -DHAVE_LIBZ