* ldfile.c (find_scripts_dir): Don't look in absolute SCRIPTDIR.
authorAlan Modra <amodra@gmail.com>
Thu, 28 Oct 2010 12:06:27 +0000 (12:06 +0000)
committerAlan Modra <amodra@gmail.com>
Thu, 28 Oct 2010 12:06:27 +0000 (12:06 +0000)
ld/ChangeLog
ld/ldfile.c

index 0ee2ed7..8ea6f6d 100644 (file)
@@ -1,3 +1,7 @@
+2010-10-28  Alan Modra  <amodra@gmail.com>
+
+       * ldfile.c (find_scripts_dir): Don't look in absolute SCRIPTDIR.
+
 2010-10-28  Matthias Klose  <doko@ubuntu.com>
 
        * ld.texinfo: Add directory section for info document.
index 2695905..1732885 100644 (file)
@@ -547,7 +547,6 @@ check_for_scripts_dir (char *dir)
 
    SCRIPTDIR (passed from Makefile)
             (adjusted according to the current location of the binary)
-   SCRIPTDIR (passed from Makefile)
    the dir where this program is (for using it from the build tree).  */
 
 static char *
@@ -571,10 +570,6 @@ find_scripts_dir (void)
       free (dir);
     }
 
-  if (check_for_scripts_dir (SCRIPTDIR))
-    /* We've been installed normally.  */
-    return SCRIPTDIR;
-
   /* Look for "ldscripts" in the dir where our binary is.  */
   dir = make_relative_prefix (program_name, ".", ".");
   if (dir)