+ if(!path_found)
+ {
+ builder.get_logger().log("tools", "No %s system path found, using defaults", tag);
+ if(!sysroot.empty())
+ system_path.push_back(sysroot/"usr/lib");
+ else if(architecture->is_native())
+ {
+ system_path.push_back("/lib");
+ system_path.push_back("/usr/lib");
+ if(architecture->match_name("pc-32-linux"))
+ {
+ system_path.push_back("/lib/i386-linux-gnu");
+ system_path.push_back("/usr/lib/i386-linux-gnu");
+ }
+ else if(architecture->match_name("pc-64-linux"))
+ {
+ system_path.push_back("/lib/x86_64-linux-gnu");
+ system_path.push_back("/usr/lib/x86_64-linux-gnu");
+ }
+ }
+ else
+ system_path.push_back(format("/usr/%s/lib", architecture->get_cross_prefix()));
+ }
+}
+
+Task *GnuLinker::_run(const Binary &bin)
+{
+ const Tool &tool = *bin.get_tool();
+ const Builder &builder = tool.get_builder();
+ const Architecture &arch = *tool.get_architecture();