ExportDefinitions *exp = new ExportDefinitions(builder, *shlib.get_component(), objs);
exp->set_tool(*this);
- ImportLibrary *imp = new ImportLibrary(builder, *shlib.get_component(), shlib, *exp);
+ ImportLibrary *imp = new ImportLibrary(builder, *shlib.get_component(), shlib);
+ imp->add_dependency(*exp);
imp->set_tool(*this);
return imp;
argv.push_back(relative(exp->get_path(), work_dir).str());
argv.push_back("-D");
- if(shlib.get_install_filename().empty())
- argv.push_back(FS::basename(shlib.get_path()));
- else
- argv.push_back(shlib.get_install_filename());
+ argv.push_back(FS::basename(shlib.get_path()));
argv.push_back("-l");
argv.push_back(relative(imp->get_path(), work_dir).str());