* emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
authorDaniel Jacobowitz <drow@false.org>
Mon, 3 Feb 2003 17:47:23 +0000 (17:47 +0000)
committerDaniel Jacobowitz <drow@false.org>
Mon, 3 Feb 2003 17:47:23 +0000 (17:47 +0000)
outside of GNU/Linux conditional.

ld/ChangeLog
ld/emultempl/elf32.em

index a4161866845e3e1958fb105c56c43ee9f185ecf6..adca7f201f65a46b0758e0bd15ed8d08f33b422e 100644 (file)
@@ -1,3 +1,8 @@
+2003-02-03  Daniel Jacobowitz  <drow@mvista.com>
+
+       * emultempl/elf32.em: Move gld${EMULATION_NAME}_add_sysroot
+       outside of GNU/Linux conditional.
+
 2003-01-28  Ralf Habacker  <ralf.habacker@freenet.de>
 
        * deffilep.y (def_get_module): New function: locate an already
index f8ba0b4c8999b4869fb2634246254701b5537b15..d58a3c9ff8e6db3d6d9498a799827a682a0f0ad1 100644 (file)
@@ -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.  */