]> git.tdb.fi Git - builder.git/commitdiff
Install shared libs correctly even if they have no soname
authorMikko Rasa <tdb@tdb.fi>
Sun, 21 Feb 2010 13:10:56 +0000 (13:10 +0000)
committerMikko Rasa <tdb@tdb.fi>
Sun, 21 Feb 2010 13:10:56 +0000 (13:10 +0000)
source/install.cpp

index 2b2a5c94f0bae872039104bbfb638cfa4de2b6f2..0578ba7173db105f0e983ceed43d8d4a185a5fa0 100644 (file)
@@ -73,7 +73,8 @@ FS::Path Install::generate_target_path(const FileTarget &tgt, const std::string
                if(comp.get_type()==Component::LIBRARY)
                {
                        mid = "lib";
-                       tgtname = shlib->get_soname();
+                       if(!shlib->get_soname().empty())
+                               tgtname = shlib->get_soname();
                }
                else if(comp.get_type()==Component::MODULE)
                        mid = "lib/"+tgt.get_package()->get_name();