fix binutils build with new gcc versions
[open-ath9k-htc-firmware.git] / Makefile
index ec4d440da6e42e9c2aa5c56678ab319a48e0ec5f..c9677cd4c5aadf1ac8b9d467d3ca8592d90461c4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,7 @@ BINUTILS_VER=2.23.1
 BINUTILS_URL=https://ftp.gnu.org/gnu/binutils/binutils-$(BINUTILS_VER).tar.bz2
 BINUTILS_TAR=binutils-$(BINUTILS_VER).tar.bz2
 BINUTILS_DIR=binutils-$(BINUTILS_VER)
-BINUTILS_PATCHES=local/patches/binutils.patch
+BINUTILS_PATCHES=local/patches/binutils.patch local/patches/binutils-elf32-xtensa-sec_cache.patch
 
 GCC_VER=4.7.2
 GCC_URL=https://ftp.gnu.org/gnu/gcc/gcc-$(GCC_VER)/gcc-$(GCC_VER).tar.bz2
@@ -71,7 +71,8 @@ endef
 
 define BINUTILS/Compile
        $(call Common/Compile,BINUTILS, \
-               --target=$(TARGET), \
+               --target=$(TARGET) \
+               --disable-werror, \
                $(MAKE) && $(MAKE) -j1 install \
        )
 endef