From: Mikko Rasa Date: Sun, 15 Jul 2012 17:14:01 +0000 (+0300) Subject: Fix shared library installation X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=fb964901e923bd6bde80c64dde21020fae88bf77;p=builder.git Fix shared library installation --- 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()