diff --git a/packages/binutils/build.sh b/packages/binutils/build.sh index 27f60fe92..4cc4e3f33 100755 --- a/packages/binutils/build.sh +++ b/packages/binutils/build.sh @@ -1,8 +1,8 @@ -TERMUX_PKG_VERSION=2.25 +TERMUX_PKG_VERSION=2.26 TERMUX_PKG_HOMEPAGE=http://www.gnu.org/software/binutils/ TERMUX_PKG_DESCRIPTION="Collection of binary tools, the main ones being ld, the GNU linker, and as, the GNU assembler" TERMUX_PKG_SRCURL=http://ftp.gnu.org/gnu/binutils/binutils-${TERMUX_PKG_VERSION}.tar.gz -# TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--enable-gold" +TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-werror" TERMUX_PKG_EXTRA_MAKE_ARGS="tooldir=$TERMUX_PREFIX" TERMUX_PKG_RM_AFTER_INSTALL="share/man/man1/windmc.1 share/man/man1/windres.1 bin/ld.bfd" diff --git a/packages/binutils/ld-emultempl-elf32.em.patch b/packages/binutils/ld-emultempl-elf32.em.patch new file mode 100644 index 000000000..5dd80b84f --- /dev/null +++ b/packages/binutils/ld-emultempl-elf32.em.patch @@ -0,0 +1,17 @@ +diff -u -r ../binutils-2.26/ld/emultempl/elf32.em ./ld/emultempl/elf32.em +--- ../binutils-2.26/ld/emultempl/elf32.em 2015-11-13 03:27:42.000000000 -0500 ++++ ./ld/emultempl/elf32.em 2016-01-28 10:20:11.534910516 -0500 +@@ -115,8 +115,13 @@ + static void + gld${EMULATION_NAME}_after_parse (void) + { ++#ifndef __ANDROID__ ++ /** The Android linker does not support DF_1_PIE but prints a warning: ++ 'unsupported flags DT_FLAGS_1=0x8000000' ++ due to validation in linker.cpp (see "case DT_FLAGS_1" there. */ */ + if (bfd_link_pie (&link_info)) + link_info.flags_1 |= (bfd_vma) DF_1_PIE; ++#endif + + after_parse_default (); + }