X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbinary.cpp;h=636def98a295f318e0926cec71b39a277b7f3e21;hb=f4a10e1dc189f28367eafe3b91723d275928ced7;hp=e82b65aaecb77048b126261c5a2cb6a444d3d24d;hpb=433f9ef196b6f5af6bb38447b650f5afaa5a783a;p=builder.git diff --git a/source/binary.cpp b/source/binary.cpp index e82b65a..636def9 100644 --- a/source/binary.cpp +++ b/source/binary.cpp @@ -53,13 +53,12 @@ void Binary::find_depends() { dep_libs.push_back(lib); - if(Install *inst = dynamic_cast(lib)) - lib = &inst->get_source(); + lib = lib->get_real_target(); if(StaticLibrary *stlib = dynamic_cast(lib)) queue.push_back(&stlib->get_component()); } else - builder.problem(comp.get_package().get_name(), format("Couldn't find library %s for %s", *i, FS::basename(name))); + builder.problem(comp.get_package().get_name(), format("Couldn't find library %s for %s", *i, name)); } }