Patchwork [3/3] glib-2.0: Specify libiconv when building on uclibc

login
register
mail settings
Submitter Khem Raj
Date Aug. 22, 2013, 4:31 a.m.
Message ID <9d36baf7297cc82be41f869cfe2abd079c7ef02f.1377145501.git.raj.khem@gmail.com>
Download mbox | patch
Permalink /patch/56145/
State Accepted
Commit 2b7d2f8034d0a008a1ab853e5f05a4d4162ccbc2
Headers show

Comments

Khem Raj - Aug. 22, 2013, 4:31 a.m.
We use GNU libiconv seprate package on uclibc
specifying this makes the configure clear of not
trying to detect glibc/iconv and then also finding
libiconv in sysroot and confusing itself with errors like

| gconvert.c:66:2: error: #error GNU libiconv not in use but included iconv.h is from libiconv
|  #error GNU libiconv not in use but included iconv.h is from libiconv
|   ^

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/recipes-core/glib-2.0/glib-2.0_2.36.4.bb | 1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/meta/recipes-core/glib-2.0/glib-2.0_2.36.4.bb b/meta/recipes-core/glib-2.0/glib-2.0_2.36.4.bb
index 3ba49b6..0918bf5 100644
--- a/meta/recipes-core/glib-2.0/glib-2.0_2.36.4.bb
+++ b/meta/recipes-core/glib-2.0/glib-2.0_2.36.4.bb
@@ -44,6 +44,7 @@  RDEPENDS_${PN}-ptest_append_libc-glibc = "\
             eglibc-charmap-invariant \
             eglibc-localedata-translit-cjk-variants \
            "
+EXTRA_OECONF_append_class-target_libc-uclibc = " --with-libiconv=gnu"
 
 do_configure_prepend() {
 	sed -i -e '1s,#!.*,#!${USRBINPATH}/env python,' ${S}/gio/gdbus-2.0/codegen/gdbus-codegen.in