aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2013-03-24 18:24:24 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2013-03-24 18:24:24 +0000
commitfbfc70966ddbbd972dbe22fd1c029ae57e5e066f (patch)
treede0b46f83eb8492119179494293c0baf8d162c69
parent28f90203a55ffd1ac60540aa49601e8764fa9b08 (diff)
downloadpaludis-fbfc70966ddbbd972dbe22fd1c029ae57e5e066f.tar.gz
paludis-fbfc70966ddbbd972dbe22fd1c029ae57e5e066f.tar.xz
Try to do something sensible with --library <full-path>
See: ticket:1157
-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 01e94fb..de4fd0c 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;