From ca15d11e5aeb129c33aff377b8ca05df5f44c12d Mon Sep 17 00:00:00 2001 From: Yury Usishchev Date: Mon, 9 Feb 2015 20:24:33 +0300 Subject: [PATCH] Revert "skip rpaths" This reverts commit 56b35ae7eb9f225a2c357f3eff4aabd15eed5afe. This commit introduced another dependency on environment variable Change-Id: I1e116c374aed3c0de6f66c528de5b6cf87d2e330 Signed-off-by: Yury Usishchev --- ld/emultempl/elf32.em | 92 ++------------------------------------------------- 1 file changed, 2 insertions(+), 90 deletions(-) diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index 4f13c1c5..137446f 100644 --- a/ld/emultempl/elf32.em +++ b/ld/emultempl/elf32.em @@ -1357,38 +1357,8 @@ if test x"$LDEMUL_BEFORE_ALLOCATION" != xgld"$EMULATION_NAME"_before_allocation; else ELF_INTERPRETER_SET_DEFAULT= fi - - libpath_nl= - for path in $NATIVE_LIB_DIRS; do - libpath_nl="$libpath_nl\n$path" - done fragment < rpath) - cw[-1] = 0; - - *cw = 0; - } - else - { - while (*cr && *cr != ':') - cr++; - if (*cr == ':') - cr++; - } - } - if (*rpath == '\0') - { - free (rpath); - rpath = NULL; - } - } - } + rpath = (const char *) getenv ("LD_RUN_PATH"); for (abfd = link_info.input_bfds; abfd; abfd = abfd->link.next) if (bfd_get_flavour (abfd) == bfd_target_elf_flavour) -- 2.7.4