mozilla/rust — pull request #14650 by kballard (2014-06-04 20:44:52+00:00)
Title: Prioritize target libs when there's multiple candidates

When multiple candidates for a library are found, if one (and only one)
candidate lives in the target library path, prioritize that one. This
allows `rustc -L /usr/local/lib lib.rs` to compile successfully, whereas
today it complains about multiple candidates for e.g. libstd.

Fixes #13733, #11195.