distro: Add missing Binutils patch.
* distro/patches/binutils-ld-new-dtags.patch: New file. * Makefile.am (dist_patch_DATA): Add it.
This commit is contained in:
parent
7cdeac023d
commit
c79dae6076
|
@ -39,6 +39,7 @@ nobase_dist_guilemodule_DATA = $(MODULES)
|
||||||
|
|
||||||
patchdir = $(pkgdatadir)/patches
|
patchdir = $(pkgdatadir)/patches
|
||||||
dist_patch_DATA = \
|
dist_patch_DATA = \
|
||||||
|
distro/patches/binutils-ld-new-dtags.patch \
|
||||||
distro/patches/guile-1.8-cpp-4.5.patch \
|
distro/patches/guile-1.8-cpp-4.5.patch \
|
||||||
distro/patches/m4-readlink-EINVAL.patch \
|
distro/patches/m4-readlink-EINVAL.patch \
|
||||||
distro/patches/m4-s_isdir.patch \
|
distro/patches/m4-s_isdir.patch \
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
Turn on --enable-new-dtags by default to make the linker set RUNPATH
|
||||||
|
instead of RPATH on binaries. This is important because RUNPATH can
|
||||||
|
be overriden using LD_LIBRARY_PATH at runtime.
|
||||||
|
|
||||||
|
Patch from Nixpkgs by Eelco Dolstra <eelco.dolstra@logicblox.com>.
|
||||||
|
|
||||||
|
--- binutils/ld/ldmain.c
|
||||||
|
+++ binutils/ld/ldmain.c
|
||||||
|
@@ -296,6 +296,7 @@ main (int argc, char **argv)
|
||||||
|
|
||||||
|
link_info.allow_undefined_version = TRUE;
|
||||||
|
link_info.keep_memory = TRUE;
|
||||||
|
+ link_info.new_dtags = TRUE;
|
||||||
|
link_info.combreloc = TRUE;
|
||||||
|
link_info.strip_discarded = TRUE;
|
||||||
|
link_info.callbacks = &link_callbacks;
|
Loading…
Reference in New Issue