X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=inline;f=source%2Fbinary.cpp;h=aa75b4599a52486614cd7c8df74a6a3f40bab2ab;hb=dad4c41302de525a1456e9d5b738831487c8acac;hp=e82b65aaecb77048b126261c5a2cb6a444d3d24d;hpb=433f9ef196b6f5af6bb38447b650f5afaa5a783a;p=builder.git diff --git a/source/binary.cpp b/source/binary.cpp index e82b65a..aa75b45 100644 --- a/source/binary.cpp +++ b/source/binary.cpp @@ -1,12 +1,5 @@ -/* $Id$ - -This file is part of builder -Copyright © 2006-2010 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #include -#include +#include #include "binary.h" #include "builder.h" #include "component.h" @@ -53,13 +46,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)); } }