mirror of
git://git.yoctoproject.org/poky
synced 2026-09-30 16:33:47 +00:00
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 <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
52 lines
2.0 KiB
Diff
52 lines
2.0 KiB
Diff
From acea0df9997a47f8b8224b6ca1618c8c9dfbe6d5 Mon Sep 17 00:00:00 2001
|
|
From: Robert Yang <liezhi.yang@windriver.com>
|
|
Date: Sun, 5 Jul 2015 20:25:18 -0700
|
|
Subject: [PATCH] libcc1: fix libcc1's install path and rpath
|
|
|
|
* Install libcc1.so and libcc1plugin.so into
|
|
$(libexecdir)/gcc/$(target_noncanonical)/$(gcc_version), as what we
|
|
had done to lto-plugin.
|
|
* Fix bad RPATH iussue:
|
|
gcc-5.2.0: package gcc-plugins contains bad RPATH /patht/to/tmp/sysroots/qemux86-64/usr/lib64/../lib64 in file
|
|
/path/to/gcc/5.2.0-r0/packages-split/gcc-plugins/usr/lib64/gcc/x86_64-poky-linux/5.2.0/plugin/libcc1plugin.so.0.0.0
|
|
[rpaths]
|
|
|
|
Upstream-Status: Inappropriate [OE configuration]
|
|
|
|
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
|
|
---
|
|
libcc1/Makefile.am | 4 ++--
|
|
libcc1/Makefile.in | 4 ++--
|
|
2 files changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/libcc1/Makefile.am b/libcc1/Makefile.am
|
|
index 7a274b3..db69bea 100644
|
|
--- a/libcc1/Makefile.am
|
|
+++ b/libcc1/Makefile.am
|
|
@@ -35,8 +35,8 @@ libiberty = $(if $(wildcard $(libiberty_noasan)),$(Wc)$(libiberty_noasan), \
|
|
$(Wc)$(libiberty_normal)))
|
|
libiberty_dep = $(patsubst $(Wc)%,%,$(libiberty))
|
|
|
|
-plugindir = $(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/plugin
|
|
-cc1libdir = $(libdir)/$(libsuffix)
|
|
+cc1libdir = $(libexecdir)/gcc/$(target_noncanonical)/$(gcc_version)
|
|
+plugindir = $(cc1libdir)
|
|
|
|
if ENABLE_PLUGIN
|
|
plugin_LTLIBRARIES = libcc1plugin.la
|
|
diff --git a/libcc1/Makefile.in b/libcc1/Makefile.in
|
|
index 1916134..c8995d2 100644
|
|
--- a/libcc1/Makefile.in
|
|
+++ b/libcc1/Makefile.in
|
|
@@ -262,8 +262,8 @@ libiberty = $(if $(wildcard $(libiberty_noasan)),$(Wc)$(libiberty_noasan), \
|
|
$(Wc)$(libiberty_normal)))
|
|
|
|
libiberty_dep = $(patsubst $(Wc)%,%,$(libiberty))
|
|
-plugindir = $(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/plugin
|
|
-cc1libdir = $(libdir)/$(libsuffix)
|
|
+cc1libdir = $(libexecdir)/gcc/$(target_noncanonical)/$(gcc_version)
|
|
+plugindir = $(cc1libdir)
|
|
@ENABLE_PLUGIN_TRUE@plugin_LTLIBRARIES = libcc1plugin.la
|
|
@ENABLE_PLUGIN_TRUE@cc1lib_LTLIBRARIES = libcc1.la
|
|
BUILT_SOURCES = compiler-name.h
|