]> git.tdb.fi Git - builder.git/blobdiff - source/link.cpp
Change arch and prefix to global options
[builder.git] / source / link.cpp
index 88ee97a8595e1c5668f2e712b150ae6c895271ac..7d37ac4f619685ccaf4ffea257953480cad805a5 100644 (file)
@@ -27,7 +27,7 @@ Link::Link(Builder &b, const Executable &exe):
 
        //XXX Determine whether to use g++ or gcc
        string tool="LXX";
-       argv.push_back(builder.get_architecture(comp.get_package().get_arch()).get_tool(tool));
+       argv.push_back(builder.get_current_arch().get_tool(tool));
 
        if(comp.get_type()==Component::LIBRARY || comp.get_type()==Component::MODULE)
                argv.push_back("-shared");
@@ -59,9 +59,9 @@ Link::Link(Builder &b, const Executable &exe):
                        argv.push_back("-l"+syslib->get_libname());
        }
 
-       Path::Path epath=exe.get_name();
+       Path epath=exe.get_name();
        if(!builder.get_dry_run())
-               Path::mkpath(epath.subpath(0, epath.size()-1), 0755);
+               mkpath(epath.subpath(0, epath.size()-1), 0755);
 
        announce(comp.get_package().get_name(), tool, relative(epath, comp.get_package().get_source()).str());