Patchwork [4/9] binutils: fix build on ARM

login
register
mail settings
Submitter Morten Svendsen
Date Oct. 17, 2012, 2:37 p.m.
Message ID <e6de63a88fd92339ab2786602c39ccbef7cdb997.1350484529.git.morten.thunbergsvendsen@prevas.dk>
Download mbox | patch
Permalink /patch/192066/
State Accepted
Delegated to: Esben Haabendal
Headers show

Comments

Morten Svendsen - Oct. 17, 2012, 2:37 p.m.
cc1: warnings being treated as errors
gas/config/tc-arm.c: In function 'parse_operands':
gas/config/tc-arm.c:1876:27: error: 'firsttype$defined' may be used uninitialized in this function
gas/config/tc-arm.c:1876:27: error: 'firsttype$index' may be used uninitialized in this function
---
 recipes/binutils/binutils.inc |    1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/recipes/binutils/binutils.inc b/recipes/binutils/binutils.inc
index 6a50cf2..94c4482 100644
--- a/recipes/binutils/binutils.inc
+++ b/recipes/binutils/binutils.inc
@@ -18,6 +18,7 @@  SRC_URI = "${GNU_MIRROR}/binutils/binutils-${PV}.tar.bz2 "
 DEPENDS = "native:flex native:bison"
 
 EXTRA_OECONF = "--enable-install-libbfd --enable-shared"
+EXTRA_OECONF:>HOST_CPU_arm = " --disable-werror"
 
 inherit auto-package-libs
 AUTO_PACKAGE_LIBS = "bfd opcodes"