]> git.tdb.fi Git - builder.git/blobdiff - source/gnulinker.cpp
Using different out directories per build type is more trouble than it's worth
[builder.git] / source / gnulinker.cpp
index 070bdcef745581b333947408248c6dfd184c5610..f7982f7a626c9ac927c2e20b7db42794a72416ff 100644 (file)
@@ -134,14 +134,14 @@ Task *GnuLinker::Linker::run(const Target &target) const
        if(architecture->get_bits()!=native_arch.get_bits())
                argv.push_back(format("-m%d", architecture->get_bits()));
 
-       FS::Path work_dir = comp.get_package().get_source();
+       FS::Path work_dir = comp.get_package().get_source_directory();
 
        argv.push_back("-o");
        argv.push_back(relative(bin.get_path(), work_dir).str());
 
-       bool static_link_ok = (comp.get_package().get_library_mode()<=STATIC);
+       bool static_link_ok = (binfo.libmode<=BuildInfo::STATIC);
 
-       const Target::Dependencies &depends = target.get_depends();
+       const Target::Dependencies &depends = target.get_dependencies();
        for(Target::Dependencies::const_iterator i=depends.begin(); i!=depends.end(); ++i)
        {
                Target *tgt = (*i)->get_real_target();