mirror of
https://github.com/rui314/mold.git
synced 2024-11-11 16:58:12 +03:00
temporary
This commit is contained in:
parent
30974e5f99
commit
fed6f552f3
4
main.cc
4
main.cc
@ -589,11 +589,11 @@ static int parse_filler(opt::InputArgList &args) {
|
||||
|
||||
std::string find_library(StringRef name) {
|
||||
for (StringRef dir : config.library_paths) {
|
||||
if (std::string path = (dir + "/lib" + name + ".a").str(); fs::exists(path))
|
||||
return path;
|
||||
if (!config.is_static)
|
||||
if (std::string path = (dir + "/lib" + name + ".so").str(); fs::exists(path))
|
||||
return path;
|
||||
if (std::string path = (dir + "/lib" + name + ".a").str(); fs::exists(path))
|
||||
return path;
|
||||
}
|
||||
error("library not found: " + name);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user