diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 1993-07-07 18:20:25 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 1993-07-07 18:20:25 +0000 |
commit | f820b89885a556770bebd0f4bc7f245e543ce3cf (patch) | |
tree | 9629699597be42cc0af234bfe7665e71dc1d97b4 /gcc | |
parent | cf0c751a4f80ac96a204b1e09213eedf222aa92f (diff) | |
download | gcc-f820b89885a556770bebd0f4bc7f245e543ce3cf.zip gcc-f820b89885a556770bebd0f4bc7f245e543ce3cf.tar.gz gcc-f820b89885a556770bebd0f4bc7f245e543ce3cf.tar.bz2 |
Search for ld in the compiler directories.
From-SVN: r4872
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/collect2.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c index 46410d8..0a9f1e5 100644 --- a/gcc/collect2.c +++ b/gcc/collect2.c @@ -857,9 +857,8 @@ main (argc, argv) if (ld_file_name == 0) ld_file_name = find_a_file (&path, REAL_LD_FILE_NAME); #endif - /* This would be the right place to search the compiler dirs - for `ld', but we don't do that, since this program is installed - there as `ld'. */ + if (ld_file_name == 0) + ld_file_name = find_a_file (&cpath, full_ld_suffix); /* Search the ordinary system bin directories for `ld' (if native linking) or `TARGET-ld' (if cross). */ if (ld_file_name == 0) |