]> code.ossystems Code Review - openembedded-core.git/commitdiff
binutils: fix multilib header difference
authorJeremy Puhlman <jpuhlman@mvista.com>
Fri, 28 Feb 2020 22:54:09 +0000 (14:54 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 29 Feb 2020 13:01:29 +0000 (13:01 +0000)
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.

Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/binutils/binutils.inc

index 6ed40a14861fbd0f9a4fea96b0e26429d493d838..b0937e62fc439e15d6d74d7577222824fa76c968 100644 (file)
@@ -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