X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgnulinker.cpp;h=2ec4c048d613372205f0a48421c2dcc24d19eff4;hb=4b075b4a7ed921be62740c302edeebcd8b06ca29;hp=e266a8ea6123a53e59d4d06cc3666a04dbc7dc22;hpb=1c80c1c33af10e8e325808906a95969ee57676b6;p=builder.git diff --git a/source/gnulinker.cpp b/source/gnulinker.cpp index e266a8e..2ec4c04 100644 --- a/source/gnulinker.cpp +++ b/source/gnulinker.cpp @@ -174,9 +174,7 @@ Task *GnuLinker::Linker::run(const Target &target) const vector argv; argv.push_back(executable->get_path().str()); - const Component &comp = *bin.get_component(); - - FS::Path work_dir = comp.get_package().get_source_directory(); + FS::Path work_dir = bin.get_component()->get_package().get_source_directory(); if(const SharedLibrary *shlib = dynamic_cast(&bin)) {