diff options
authorKhem Raj <>2016-07-27 02:38:08 -0700
committerRichard Purdie <>2016-08-01 11:46:35 +0100
commit21bba0548463f277684cc52d23194ad6d7c17956 (patch)
parent3f0aea24d8460e3976e8f1db0ba694225f8bd88b (diff)
binutils: Cache gettext api version 1 and 2 support
Problem described here gettext does not detect the gettext support in libc correctly if the libc is not glibc. Musl does support the gettext version 1 and 2 of APIs tests in gettext.m4 however fail since it pokes at glibc internal symbols to determine the gettext APIs musl's implementaitons are done differenty so the tests fail and hence it does not enable the libc implementation. Since we install the header from libc it confuses the compilation and results in errors like undefined reference to `libintl_dgettext' see binutils need these variables in make env since binutils build system runs configure in the sub directories during make step, so we need to pass these flags in compile step in addition to configure step Signed-off-by: Khem Raj <> Signed-off-by: Ross Burton <>
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/ b/meta/recipes-devtools/binutils/
index e976bad3ed..b51437bbc3 100644
--- a/meta/recipes-devtools/binutils/
+++ b/meta/recipes-devtools/binutils/
@@ -10,6 +10,10 @@ EXTRA_OECONF += "--with-sysroot=/ \
--with-system-zlib \
+EXTRA_OEMAKE_append_libc-musl = "\
+ gt_cv_func_gnugettext1_libc=yes \
+ gt_cv_func_gnugettext2_libc=yes \
+ "
EXTRA_OECONF_class-native = "--enable-targets=all \
--enable-64-bit-bfd \
--enable-install-libiberty \