1
1
mirror of https://github.com/rui314/mold.git synced 2024-11-11 16:58:12 +03:00

temporary

This commit is contained in:
Rui Ueyama 2020-11-20 13:55:35 +09:00
parent 30974e5f99
commit fed6f552f3

View File

@ -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);
}