This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.  */



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]