diff options
author | Richard Henderson <rth@redhat.com> | 1999-06-20 14:12:08 +0000 |
---|---|---|
committer | Richard Henderson <rth@redhat.com> | 1999-06-20 14:12:08 +0000 |
commit | f97f73002970e20650a4f9ccf635be632b9555de (patch) | |
tree | 6047044f794ff82c5d379a1609b3d6056964b0af /ld/emultempl/sunos.em | |
parent | f800e11d880713fc418a5ee6837b942d8632b5a0 (diff) | |
download | gdb-f97f73002970e20650a4f9ccf635be632b9555de.zip gdb-f97f73002970e20650a4f9ccf635be632b9555de.tar.gz gdb-f97f73002970e20650a4f9ccf635be632b9555de.tar.bz2 |
* emultempl/armelf.em: Watch EMULATION_LIBPATH instead of
DEFAULT_EMULATION.
* emultempl/elf32.em: Likewise.
* emultempl/sunos.em: Likewise.
Diffstat (limited to 'ld/emultempl/sunos.em')
-rw-r--r-- | ld/emultempl/sunos.em | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/ld/emultempl/sunos.em b/ld/emultempl/sunos.em index 8e9599c..61a5c01 100644 --- a/ld/emultempl/sunos.em +++ b/ld/emultempl/sunos.em @@ -100,7 +100,8 @@ gld${EMULATION_NAME}_set_symbols () { EOF if [ "x${host}" = "x${target}" ] ; then - if [ "x${DEFAULT_EMULATION}" = "x${EMULATION_NAME}" ] ; then + case " ${EMULATION_LIBPATH} " in + *" ${EMULATION_NAME} "*) cat >>e${EMULATION_NAME}.c <<EOF const char *env; @@ -125,7 +126,8 @@ cat >>e${EMULATION_NAME}.c <<EOF } } EOF - fi + ;; + esac fi cat >>e${EMULATION_NAME}.c <<EOF } @@ -464,7 +466,8 @@ gld${EMULATION_NAME}_after_open () } EOF if [ "x${host}" = "x${target}" ] ; then - if [ "x${DEFAULT_EMULATION}" = "x${EMULATION_NAME}" ] ; then + case " ${EMULATION_LIBPATH} " in + *" ${EMULATION_NAME} "*) cat >>e${EMULATION_NAME}.c <<EOF { const char *lib_path; @@ -474,7 +477,8 @@ cat >>e${EMULATION_NAME}.c <<EOF continue; } EOF - fi + ;; + esac fi cat >>e${EMULATION_NAME}.c <<EOF if (command_line.rpath != NULL) |