if(comp.get_type()==Component::LIBRARY || comp.get_type()==Component::MODULE)
argv.push_back("-shared");
if(comp.get_type()==Component::LIBRARY || comp.get_type()==Component::MODULE)
argv.push_back("-shared");
const TargetList &deps=exe.get_depends();
for(TargetList::const_iterator i=deps.begin(); i!=deps.end(); ++i)
{
const TargetList &deps=exe.get_depends();
for(TargetList::const_iterator i=deps.begin(); i!=deps.end(); ++i)
{
else if(SharedLibrary *shlib=dynamic_cast<SharedLibrary *>(tgt))
argv.push_back("-l"+shlib->get_libname());
else if(dynamic_cast<StaticLibrary *>(tgt))
else if(SharedLibrary *shlib=dynamic_cast<SharedLibrary *>(tgt))
argv.push_back("-l"+shlib->get_libname());
else if(dynamic_cast<StaticLibrary *>(tgt))
- announce(comp.get_package().get_name(), tool, relative(epath, comp.get_package().get_source()).str());
+ announce(comp.get_package().get_name(), tool, relative(epath, work_dir).str());