summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/binutils/binutils_2.26.bb
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2016-07-27 02:38:08 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-01 11:47:11 +0100
commit556059a5cbd35e9dc30cbe2213d41ffc8ca9cfc7 (patch)
tree55fa373b766f63b88dc4bc0c652843a4a08c973e /meta/recipes-devtools/binutils/binutils_2.26.bb
parent8ab6c4acf300162d9d81e72f7b65e042ed211af7 (diff)
downloadpoky-556059a5cbd35e9dc30cbe2213d41ffc8ca9cfc7.tar.gz
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 (From OE-Core rev: 21bba0548463f277684cc52d23194ad6d7c17956) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils_2.26.bb')
-rw-r--r--meta/recipes-devtools/binutils/binutils_2.26.bb4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils_2.26.bb b/meta/recipes-devtools/binutils/binutils_2.26.bb
index e976bad3ed..b51437bbc3 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=/ \
10 --with-system-zlib \ 10 --with-system-zlib \
11 " 11 "
12 12
13EXTRA_OEMAKE_append_libc-musl = "\
14 gt_cv_func_gnugettext1_libc=yes \
15 gt_cv_func_gnugettext2_libc=yes \
16 "
13EXTRA_OECONF_class-native = "--enable-targets=all \ 17EXTRA_OECONF_class-native = "--enable-targets=all \
14 --enable-64-bit-bfd \ 18 --enable-64-bit-bfd \
15 --enable-install-libiberty \ 19 --enable-install-libiberty \