]> git.tdb.fi Git - builder.git/blobdiff - source/sharedlibrary.cpp
Fix an incorrect assumption of target name being the basename of its path
[builder.git] / 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));
 }