aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/clients/cave/cmd_fix_linkage.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/clients/cave/cmd_fix_linkage.cc b/src/clients/cave/cmd_fix_linkage.cc
index 01e94fb87..de4fd0c41 100644
--- a/src/clients/cave/cmd_fix_linkage.cc
+++ b/src/clients/cave/cmd_fix_linkage.cc
@@ -171,9 +171,13 @@ FixLinkageCommand::run(
{
libraries->push_back(*l);
if (std::string::npos != l->find('/'))
+ {
+ FSPath f(*l);
+ libraries->push_back(f.basename());
Log::get_instance()->message("cave.fix_linkage.library_path", ll_warning, lc_no_context)
<< "Argument --" << cmdline.a_libraries.long_name() << " '" << *l << "' includes a '/', which "
"probably does not do what you want. Generally you should not specify a path to a library.";
+ }
}
std::shared_ptr<BrokenLinkageFinder> finder;