termux-packages/packages/binutils
Buck Evan 424eac75a9 ld: set --enable-new-dtags by default (#2255)
The --enable-new-dtags option to ld causes it to emit a RUNPATH rather than RPATH entry in the elf header. Because the Android linker supports RUNPATH but not RPATH, this means many things can now Just Work. This should (eventually) eliminate the need to set LD_LIBRARY_PATH.

Prior art:

This [became the default for Linux in 2013](https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commitdiff;h=822b8bf) but I think termux isn't getting it because it reports "Android" instead of "Linux"? Or maybe the way it works changed since then. Regardless, [Debian has been using RUNPATH by default since December 2016.](https://sources.debian.org/src/binutils/2.27.90.20161231-1/debian/patches/ld-new-dtags-by-default.diff/?hl=27#L27) Their [newest configuration](https://sources.debian.org/src/binutils/2.30-7/debian/rules/#L362) uses the newer configuration option seen in this patch. The [suse and gentoo](https://web.archive.org/web/20160101182307/http://comments.gmane.org/gmane.comp.gnu.binutils/57379) maintainers said they did the same in 2004 and 2005, respectively. So it seems well battle-tested, to me.

For the curious:
This came up because I'm working on [getting Homebrew working under Termux](https://github.com/Linuxbrew/brew/pull/621).
2018-03-18 20:51:06 +01:00
..
binutils.patch Initial push 2015-06-13 01:03:31 +02:00
build.sh ld: set --enable-new-dtags by default (#2255) 2018-03-18 20:51:06 +01:00
ld-emultempl-elf32.em.patch binutils: Fix patch in ifndef __ANDROID__ 2016-09-19 19:18:23 -04:00
ldd More /system/bin/sh -> $PREFIX/bin/sh changes 2015-12-02 06:32:11 -05:00
native_lib_dirs.patch32 binutils: Prepare for 64-bit build 2016-01-28 15:28:32 -05:00
native_lib_dirs.patch64 binutils: Prepare for 64-bit build 2016-01-28 15:28:32 -05:00