]> code.ossystems Code Review - openembedded-core.git/commit
gcc-target 5.1: fix for libcc1
authorRobert Yang <liezhi.yang@windriver.com>
Mon, 6 Jul 2015 10:35:35 +0000 (03:35 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 27 Jul 2015 09:36:28 +0000 (10:36 +0100)
commitf6e47aa9b12f9ab61530c40e0343f451699d9077
tree0dcfd02a75c9f328afe6dad3ceb8c986e64fb2ab
parent2a212e56a814e5dc8a8bae4974b91109ed0486ef
gcc-target 5.1: fix for libcc1

Fixed:
* gcc 5 introduces a plugin libcc1.so, which is used by gdb, the target
gcc didn't build it in the past because gcc_cv_objdump is null, and
the error was:
gcc-5.2.0/libcc1/configure: line 14531: -T: command not found

This only happens for tar gcc as the code shows:
  if test x$build = x$host; then
    export_sym_check="objdump${exeext} -T"
  elif test x$host = x$target; then
    export_sym_check="$gcc_cv_objdump -T"
  else
    export_sym_check=
  fi

* Install libcc1.so and libcc1plugin.so to
  $(libexecdir)/gcc/$(target_noncanonical)/$(gcc_version) as lto-plugin did.

* Use sed command to fix bad RPATH iussue.

[YOCTO #7956]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gcc/gcc-5.2.inc
meta/recipes-devtools/gcc/gcc-5.2/0039-libcc1-fix-libcc1-s-install-path-and-rpath.patch [new file with mode: 0644]
meta/recipes-devtools/gcc/gcc-target.inc
meta/recipes-devtools/gcc/gcc_5.2.bb