aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2003-02-03 17:47:23 +0000
committerDaniel Jacobowitz <drow@false.org>2003-02-03 17:47:23 +0000
commit3dc16cab3d1c516fea6535e677371929fe7b9df7 (patch)
treebad3e58aaefe12ee3c11b949462ea4d2c424dfe1 /ld/emultempl
parent9ba61c5d3ad064fdd1f430c3f4639bc88c6bab21 (diff)
downloadgdb-3dc16cab3d1c516fea6535e677371929fe7b9df7.zip
gdb-3dc16cab3d1c516fea6535e677371929fe7b9df7.tar.gz
gdb-3dc16cab3d1c516fea6535e677371929fe7b9df7.tar.bz2
* emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
outside of GNU/Linux conditional.
Diffstat (limited to 'ld/emultempl')
-rw-r--r--ld/emultempl/elf32.em8
1 files changed, 5 insertions, 3 deletions
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em
index f8ba0b4..d58a3c9 100644
--- a/ld/emultempl/elf32.em
+++ b/ld/emultempl/elf32.em
@@ -440,9 +440,7 @@ gld${EMULATION_NAME}_search_needed (path, name, force)
EOF
if [ "x${USE_LIBPATH}" = xyes ] ; then
- case ${target} in
- *-*-linux-gnu*)
- cat >>e${EMULATION_NAME}.c <<EOF
+ cat >>e${EMULATION_NAME}.c <<EOF
/* Add the sysroot to every entry in a colon-separated path. */
@@ -482,6 +480,10 @@ gld${EMULATION_NAME}_add_sysroot (path)
return ret;
}
+EOF
+ case ${target} in
+ *-*-linux-gnu*)
+ cat >>e${EMULATION_NAME}.c <<EOF
/* For a native linker, check the file /etc/ld.so.conf for directories
in which we may find shared libraries. /etc/ld.so.conf is really
only meaningful on Linux. */