]> gcc.gnu.org Git - gcc.git/commitdiff
(main): When searching compiler directories, look for ld_suffix, not
authorRichard Kenner <kenner@gcc.gnu.org>
Thu, 23 Dec 1993 13:17:07 +0000 (08:17 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Thu, 23 Dec 1993 13:17:07 +0000 (08:17 -0500)
full_ld_suffix.

From-SVN: r6280

gcc/collect2.c

index ae7f070060bddf5f3378dd629b6f479e74949928..8d6024cac7295c68a4d0eac56e055054911bc8be 100644 (file)
@@ -958,8 +958,10 @@ main (argc, argv)
   if (ld_file_name == 0)
     ld_file_name = find_a_file (&path, REAL_LD_FILE_NAME);
 #endif
+  /* Search the compiler directories for `ld'.  We have protection against
+     recursive calls in find_a_file.  */
   if (ld_file_name == 0)
-    ld_file_name = find_a_file (&cpath, full_ld_suffix);
+    ld_file_name = find_a_file (&cpath, ld_suffix);
   /* Search the ordinary system bin directories
      for `ld' (if native linking) or `TARGET-ld' (if cross).  */
   if (ld_file_name == 0)
This page took 0.069582 seconds and 5 git commands to generate.