diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2000-08-25 20:24:11 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2000-08-25 20:24:11 +0000 |
commit | dcb0bd0eef10207754cb0fa64af3f2b965a1a589 (patch) | |
tree | f4780681dec6f11c9b1d6dd49546f53ee75f8230 /ld/emultempl/elf32.em | |
parent | 1e8d20f4cc9ca76341801e68c7759805e370c18a (diff) | |
download | gdb-dcb0bd0eef10207754cb0fa64af3f2b965a1a589.zip gdb-dcb0bd0eef10207754cb0fa64af3f2b965a1a589.tar.gz gdb-dcb0bd0eef10207754cb0fa64af3f2b965a1a589.tar.bz2 |
2000-08-24 H.J. Lu <hjl@gnu.org>
* emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
check -rpath nor LD_RUN_PATH for cross link.
* ld.texinfo: Document the change.
Diffstat (limited to 'ld/emultempl/elf32.em')
-rw-r--r-- | ld/emultempl/elf32.em | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index 9698e9f..b6e9856 100644 --- a/ld/emultempl/elf32.em +++ b/ld/emultempl/elf32.em @@ -620,7 +620,6 @@ gld${EMULATION_NAME}_after_open () their use. See gld${EMULATION_NAME}_vercheck comment. */ for (force = 0; force < 2; force++) { - const char *lib_path; size_t len; search_dirs_type *search; EOF @@ -628,6 +627,7 @@ if [ "x${host}" = "x${target}" ] ; then case " ${EMULATION_LIBPATH} " in *" ${EMULATION_NAME} "*) cat >>e${EMULATION_NAME}.c <<EOF + const char *lib_path; struct bfd_link_needed_list *rp; int found; EOF @@ -639,6 +639,11 @@ cat >>e${EMULATION_NAME}.c <<EOF if (gld${EMULATION_NAME}_search_needed (command_line.rpath_link, l->name, force)) break; +EOF +if [ "x${host}" = "x${target}" ] ; then + case " ${EMULATION_LIBPATH} " in + *" ${EMULATION_NAME} "*) +cat >>e${EMULATION_NAME}.c <<EOF if (gld${EMULATION_NAME}_search_needed (command_line.rpath, l->name, force)) break; @@ -650,11 +655,6 @@ cat >>e${EMULATION_NAME}.c <<EOF force)) break; } -EOF -if [ "x${host}" = "x${target}" ] ; then - case " ${EMULATION_LIBPATH} " in - *" ${EMULATION_NAME} "*) -cat >>e${EMULATION_NAME}.c <<EOF lib_path = (const char *) getenv ("LD_LIBRARY_PATH"); if (gld${EMULATION_NAME}_search_needed (lib_path, l->name, force)) break; |