Skip to contentSkip to conversation

binutils: Fix useless rpaths QA warning

PATCH Superseded Khem Raj 1 participant 1 message Feb 15, 2016

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 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

---
 meta/recipes-devtools/binutils/binutils.inc | 5 +++++
 1 file changed, 5 insertions(+)
meta/recipes-devtools/binutils/binutils.inc +5 -0
index 79e2a12..7a5b4cc 100644
@@ -51,6 +51,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 +112,10 @@ do_configure () {
 	done
 }
 
+do_compile_append_class-target() {
+	chrpath -d ${B}/binutils/elfedit
+	chrpath -d ${B}/binutils/readelf
+}
 do_install () {
 	autotools_do_install
 
Signature · 1 line
2.7.1