aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl
diff options
context:
space:
mode:
authorDavid O'Brien <obrien@FreeBSD.org>2001-01-08 05:25:58 +0000
committerDavid O'Brien <obrien@FreeBSD.org>2001-01-08 05:25:58 +0000
commit482e8b3206b826aae8c867d87458c0cf26bd084d (patch)
tree4ff724bd6ebfa24ef5a4d21c8efd61ffff351172 /ld/emultempl
parent5c2bd011d3166a1e787abd77eef482c1dfece2a3 (diff)
downloadfsf-binutils-gdb-482e8b3206b826aae8c867d87458c0cf26bd084d.zip
fsf-binutils-gdb-482e8b3206b826aae8c867d87458c0cf26bd084d.tar.gz
fsf-binutils-gdb-482e8b3206b826aae8c867d87458c0cf26bd084d.tar.bz2
2000-01-07 David O'Brien <obrien@BSDi.com>
* emultempl/elf32.em: Only perform Linux ld hints processing when targeting Linux. Approved by: Nick Clifton <nickc@redhat.com> Message-Id: <200101040127.RAA15127@elmo.cygnus.com>
Diffstat (limited to 'ld/emultempl')
-rw-r--r--ld/emultempl/elf32.em17
1 files changed, 13 insertions, 4 deletions
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em
index e03da1b..492953d 100644
--- a/ld/emultempl/elf32.em
+++ b/ld/emultempl/elf32.em
@@ -425,11 +425,13 @@ EOF
if [ "x${host}" = "x${target}" ] ; then
case " ${EMULATION_LIBPATH} " in
*" ${EMULATION_NAME} "*)
-cat >>e${EMULATION_NAME}.c <<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, but we check it on other systems anyhow. */
+ only meaningful on Linux. */
static boolean gld${EMULATION_NAME}_check_ld_so_conf
PARAMS ((const char *, int));
@@ -509,7 +511,9 @@ gld${EMULATION_NAME}_check_ld_so_conf (name, force)
}
EOF
- ;;
+ # Linux
+ ;;
+ esac
esac
fi
cat >>e${EMULATION_NAME}.c <<EOF
@@ -695,10 +699,15 @@ EOF
if [ "x${host}" = "x${target}" ] ; then
case " ${EMULATION_LIBPATH} " in
*" ${EMULATION_NAME} "*)
-cat >>e${EMULATION_NAME}.c <<EOF
+ case ${target} in
+ *-*-linux-gnu*)
+ cat >>e${EMULATION_NAME}.c <<EOF
if (gld${EMULATION_NAME}_check_ld_so_conf (l->name, force))
break;
EOF
+ # Linux
+ ;;
+ esac
;;
esac
fi