]> git.tdb.fi Git - builder.git/blobdiff - source/sharedlibrary.cpp
Tool names are no longer retrieved from Architecture
[builder.git] / source / sharedlibrary.cpp
index a3225171836eafb10a67f30e3191ccc660d8901c..6a197bac08c69535ccb53fd98b62d6a04c7c189f 100644 (file)
@@ -1,11 +1,5 @@
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
-#include <msp/strings/formatter.h>
+#include <msp/fs/utils.h>
+#include <msp/strings/format.h>
 #include "component.h"
 #include "sharedlibrary.h"
 #include "sourcepackage.h"
@@ -36,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));
 }