X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finstalledfile.cpp;h=f4b8a939832efc0aa150c5bc10196bba9c3f42c2;hb=b1f873e8b4ebe5053bc97f637bd4c79f8f4c40cc;hp=09cfed6db03a47165b3cb7c1834e2758244cc803;hpb=f2b26f1929a8209a746bcf4944165b0ba9ef303f;p=builder.git 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()