From b3a2ef9465ec43c08362ddabcc3fa32d8329fe9d Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Thu, 23 Dec 1993 08:17:07 -0500 Subject: [PATCH] (main): When searching compiler directories, look for ld_suffix, not full_ld_suffix. From-SVN: r6280 --- gcc/collect2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gcc/collect2.c b/gcc/collect2.c index ae7f070060b..8d6024cac72 100644 --- a/gcc/collect2.c +++ b/gcc/collect2.c @@ -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) -- 2.30.2