From e86dc1a18222142a20913ebe79feab58dc668aca Mon Sep 17 00:00:00 2001 From: Robert Yang Date: Mon, 6 Jul 2015 03:35:35 -0700 Subject: 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] (From OE-Core rev: f6e47aa9b12f9ab61530c40e0343f451699d9077) Signed-off-by: Robert Yang Signed-off-by: Richard Purdie --- meta/recipes-devtools/gcc/gcc-target.inc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'meta/recipes-devtools/gcc/gcc-target.inc') diff --git a/meta/recipes-devtools/gcc/gcc-target.inc b/meta/recipes-devtools/gcc/gcc-target.inc index 5d314460c0..c362a0f6b9 100644 --- a/meta/recipes-devtools/gcc/gcc-target.inc +++ b/meta/recipes-devtools/gcc/gcc-target.inc @@ -10,6 +10,11 @@ EXTRA_OECONF_PATHS = "\ EXTRA_OECONF_append_linuxstdbase = " --enable-clocale=gnu" +# libcc1 requres gcc_cv_objdump when cross build, but gcc_cv_objdump is +# set in subdir gcc, so subdir libcc1 can't use it, export it here to +# fix the problem. +export gcc_cv_objdump = "${TARGET_PREFIX}objdump" + EXTRA_OECONF_GCC_FLOAT = "${@get_gcc_float_setting(bb, d)}" PACKAGES = "\ -- cgit v1.2.3-54-g00ecf