[PATCH 19/73] mtools: Fix build with uclibc

Khem Raj
2016-01-17T11:37:17Z

unlike glibc, uclibc does not have internal APIs implemented for
libiconv, so it needs to depend upon libiconv

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
meta/recipes-devtools/mtools/mtools_4.0.18.bb | 3 +++
1 file changed, 3 insertions(+)

diff --git a/meta/recipes-devtools/mtools/mtools_4.0.18.bb b/meta/recipes-devtools/mtools/mtools_4.0.18.bb
index bc9b79c..479fd32 100644
--- a/meta/recipes-devtools/mtools/mtools_4.0.18.bb
+++ b/meta/recipes-devtools/mtools/mtools_4.0.18.bb
@@ -5,6 +5,7 @@ SECTION = "optional"
LICENSE = "GPLv3"
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"

+DEPENDS += "virtual/libiconv"

RDEPENDS_${PN}_libc-glibc = "glibc-gconv-ibm850"
RRECOMMENDS_${PN}_libc-glibc = "\
@@ -35,6 +36,8 @@ inherit autotools texinfo

EXTRA_OECONF = "--without-x"

+LDFLAGS_append_libc-uclibc = " -liconv "
+
BBCLASSEXTEND = "native nativesdk"

PACKAGECONFIG ??= ""
--
2.7.0