]> git.tdb.fi Git - builder.git/commitdiff
Fix an incorrect assumption of target name being the basename of its path
authorMikko Rasa <tdb@tdb.fi>
Sat, 31 Mar 2012 10:46:47 +0000 (13:46 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 31 Mar 2012 10:46:47 +0000 (13:46 +0300)
source/sharedlibrary.cpp

index 606593bda0d88c82d3299e33db6a7a540d1876f4..6a197bac08c69535ccb53fd98b62d6a04c7c189f 100644 (file)
@@ -1,3 +1,4 @@
+#include <msp/fs/utils.h>
 #include <msp/strings/format.h>
 #include "component.h"
 #include "sharedlibrary.h"
@@ -29,5 +30,5 @@ string SharedLibrary::create_soname(const Component &c)
                                break;
                }
 
-       return format("%s.%s", name, ver.substr(0, i));
+       return format("%s.%s", FS::basename(path), ver.substr(0, i));
 }