binutils: support for the SPARC M8 processor
[deliverable/binutils-gdb.git] / ld / ldfile.c
index 0943bb2dfa0fcc40565133773e86f72cf04d19f8..3b37a0a3e2636b2ac3b04e0ec074d14fbfa5315b 100644 (file)
@@ -112,6 +112,8 @@ ldfile_add_library_path (const char *name, bfd_boolean cmdline)
      now.  */
   if (name[0] == '=')
     new_dirs->name = concat (ld_sysroot, name + 1, (const char *) NULL);
+  else if (CONST_STRNEQ (name, "$SYSROOT"))
+    new_dirs->name = concat (ld_sysroot, name + strlen ("$SYSROOT"), (const char *) NULL);
   else
     new_dirs->name = xstrdup (name);
 }
This page took 0.028174 seconds and 4 git commands to generate.