aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/binutils/binutils.inc
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2016-02-16 21:14:09 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-18 07:39:21 +0000
commit9043202f4e705932a3847f2f7635fca06fe5a916 (patch)
tree2e23c01a705ac126099da040bb0c07479c3959e8 /meta/recipes-devtools/binutils/binutils.inc
parent590cf4be70f1355622d3a94d76b4cc6d525d4a34 (diff)
downloadopenembedded-core-contrib-9043202f4e705932a3847f2f7635fca06fe5a916.tar.gz
binutils: Fix useless rpaths QA warning
elfedit and readelf contains /usr/lib in elf header this patch deletes them from binaries, ideally it should be fixed in libtool and Makery of binutils mips target binutils dont build gold so remove them from ALTERNATIVES list depend on own version of chrpath native, so builds on build OS like Centos can work, the verison of chrpath on centos is old enough to not support dealing with multi-arch ELF files. Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils.inc')
-rw-r--r--meta/recipes-devtools/binutils/binutils.inc11
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils.inc b/meta/recipes-devtools/binutils/binutils.inc
index 79e2a1205e..43e2aa232b 100644
--- a/meta/recipes-devtools/binutils/binutils.inc
+++ b/meta/recipes-devtools/binutils/binutils.inc
@@ -13,6 +13,12 @@ LICENSE = "GPLv3"
DEPENDS = "flex-native bison-native zlib-native gnu-config-native autoconf-native"
+#
+# we need chrpath > 0.14 and some distros like centos 7 still have older chrpath
+#
+DEPENDS_append_class-target = " chrpath-replacement-native"
+EXTRANATIVEPATH_append_class-target = " chrpath-native"
+
inherit autotools gettext multilib_header texinfo
FILES_${PN} = " \
@@ -51,6 +57,7 @@ USE_ALTERNATIVES_FOR = " \
strings \
strip \
"
+USE_ALTERNATIVES_FOR_remove_mips = "ld.gold dwp"
python do_package_prepend() {
make_alts = d.getVar("USE_ALTERNATIVES_FOR", True) or ""
@@ -111,6 +118,10 @@ do_configure () {
done
}
+do_compile_append_class-target() {
+ chrpath -d ${B}/binutils/elfedit
+ chrpath -d ${B}/binutils/readelf
+}
do_install () {
autotools_do_install