]> git.tdb.fi Git - builder.git/blobdiff - source/gnulinker.cpp
Use format() when creating strings from more than two parts
[builder.git] / source / gnulinker.cpp
index 4048f1c5fefbe362b2dc0e358475cad70bd4b024..61332b2452a3e39069d2f1084008fb199b838c7c 100644 (file)
@@ -174,7 +174,7 @@ void GnuLinker::do_prepare()
                        }
                }
                else
-                       system_path.push_back("/usr/"+architecture->get_cross_prefix()+"/lib");
+                       system_path.push_back(format("/usr/%s/lib", architecture->get_cross_prefix()));
        }
 }
 
@@ -232,7 +232,7 @@ Task *GnuLinker::Linker::run(const Target &target) const
 {
        const Binary &bin = dynamic_cast<const Binary &>(target);
 
-       vector<string> argv;
+       ExternalTask::Arguments argv;
        argv.push_back(executable->get_path().str());
 
        FS::Path work_dir = bin.get_component()->get_package().get_source_directory();