In some specific environments on PowerPC native builds failing due to:

  a) libgpg-error requires TARGET_ARCH tuple mapping to supported tuple
  b) binutils fails to build with --enable-targets=all due to small bss
     and data relocation failures.

To fix a) is trivial: we need to add tuple mapping for TARGET_ARCH=ppc.

Fixing b) isn't simple because with --enable-targets=all binary becomes
too big to support R_PPC_GOT16 relocations against small bss/data. Since
for native builds we only need libbfd, libiberty and libopcodes we can
build only these three archives and their dependencies.

See individual commit message for details on each change presented.

Serhey Popovych (2):
  libgpg-error: Support build for native on ppc host
  binutils: Speed up and fix native builds

 meta/recipes-devtools/binutils/binutils_2.31.bb    | 33 +++++++++++++---------
 .../libgpg-error/libgpg-error_1.33.bb              |  1 +
 2 files changed, 20 insertions(+), 14 deletions(-)

-- 
2.7.4

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to