This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Sysroot tweak for non-Linux hosts
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: binutils at sources dot redhat dot com
- Date: Mon, 3 Feb 2003 12:49:12 -0500
- Subject: Sysroot tweak for non-Linux hosts
This was pointed out on bug-binutils; committed as obvious.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
2003-02-03 Daniel Jacobowitz <drow@mvista.com>
* emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
outside of GNU/Linux conditional.
Index: elf32.em
===================================================================
RCS file: /cvs/src/src/ld/emultempl/elf32.em,v
retrieving revision 1.89
diff -u -p -r1.89 elf32.em
--- elf32.em 17 Jan 2003 10:36:49 -0000 1.89
+++ elf32.em 27 Jan 2003 21:07:21 -0000
@@ -440,9 +440,7 @@ gld${EMULATION_NAME}_search_needed (path
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. */