From fb964901e923bd6bde80c64dde21020fae88bf77 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 15 Jul 2012 20:14:01 +0300 Subject: [PATCH] Fix shared library installation --- source/installedfile.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/installedfile.cpp b/source/installedfile.cpp index 09cfed6..f4b8a93 100644 --- a/source/installedfile.cpp +++ b/source/installedfile.cpp @@ -33,7 +33,12 @@ FS::Path InstalledFile::generate_target_path(const FS::Path &prefix, const FileT else mid = tgt.get_install_location(); - return prefix/mid/FS::basename(tgt.get_path()); + string fn = FS::basename(tgt.get_path()); + if(const SharedLibrary *shlib = dynamic_cast(&tgt)) + if(!shlib->get_soname().empty()) + fn = shlib->get_soname(); + + return prefix/mid/fn; } Target *InstalledFile::get_real_target() -- 2.43.0