]> code.ossystems Code Review - openembedded-core.git/commit
binutils: Cache gettext api version 1 and 2 support
authorKhem Raj <raj.khem@gmail.com>
Wed, 27 Jul 2016 09:38:08 +0000 (02:38 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 1 Aug 2016 10:46:35 +0000 (11:46 +0100)
commit21bba0548463f277684cc52d23194ad6d7c17956
treeefe83a1e25b0baa1a74a51f71c2df4a7e64ce44d
parent3f0aea24d8460e3976e8f1db0ba694225f8bd88b
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@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-devtools/binutils/binutils_2.26.bb