X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgnulinker.cpp;h=f7982f7a626c9ac927c2e20b7db42794a72416ff;hb=0cf7bb122ef4c0fc46fbb2aaaf1a9d6d5ccec0f1;hp=4276397b23c863b5ead37a90e5ca1b64af7cce84;hpb=abb2336c34b94abc0508a00f07afdf85d7c78951;p=builder.git diff --git a/source/gnulinker.cpp b/source/gnulinker.cpp index 4276397..f7982f7 100644 --- a/source/gnulinker.cpp +++ b/source/gnulinker.cpp @@ -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 = (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();