if(spkg->get_install_flags()&(SourcePackage::LIB|SourcePackage::INCLUDE))
{
PkgConfig *pc = new PkgConfig(*this, *spkg);
- install->add_depend(new InstalledFile(*this, *spkg, *pc));
+ install->add_depend(toolchain.get_tool("CP").create_target(*pc));
}
}