Skip to contentSkip to conversation

binutils: fix multilib header difference

PATCH New Jeremy A. Puhlman 1 participant 1 message Feb 28, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 binutils: fix multilib header difference

From: Jeremy Puhlman <[email protected]>

bfd_stdint.h encodes the name of the compiler in the header which is different between mutlilibs. Remvoe target prefix to make the headers match.

---
 meta/recipes-devtools/binutils/binutils.inc | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-devtools/binutils/binutils.inc +2 -0
index 6ed40a1486..b0937e62fc 100644
@@ -163,6 +163,8 @@ do_install () {
 	done
 
 	oe_multilib_header bfd.h
+        # bfd_stdint.h encodes the compiler name in the header
+        sed -i ${D}${includedir}/bfd_stdint.h -e "s,${TARGET_PREFIX},,"
 }
 
 inherit update-alternatives
Signature · 1 line
2.20.1