[oe-commits] [openembedded-core] 07/43: binutils: Cache gettext api version 1 and 2 support
git at git.openembedded.org
git at git.openembedded.org
Mon Aug 1 10:49:31 UTC 2016
rpurdie pushed a commit to branch master
in repository openembedded-core.
commit 21bba0548463f277684cc52d23194ad6d7c17956
Author: Khem Raj <raj.khem at gmail.com>
AuthorDate: Wed Jul 27 02:38:08 2016 -0700
binutils: Cache gettext api version 1 and 2 support
Problem described here
https://lists.gnu.org/archive/html/bug-gettext/2015-11/msg00012.html
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
http://www.openwall.com/lists/musl/2015/04/16/3
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
libbfd.so: undefined reference to `libintl_dgettext'
see
http://savannah.gnu.org/bugs/?46436
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 <raj.khem at gmail.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
meta/recipes-devtools/binutils/binutils_2.26.bb | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/meta/recipes-devtools/binutils/binutils_2.26.bb b/meta/recipes-devtools/binutils/binutils_2.26.bb
index e976bad..b51437b 100644
--- a/meta/recipes-devtools/binutils/binutils_2.26.bb
+++ b/meta/recipes-devtools/binutils/binutils_2.26.bb
@@ -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 \
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list