From: Mikko Rasa Date: Sat, 31 Mar 2012 10:46:47 +0000 (+0300) Subject: Fix an incorrect assumption of target name being the basename of its path X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=dad4c41302de525a1456e9d5b738831487c8acac;p=builder.git Fix an incorrect assumption of target name being the basename of its path --- diff --git a/source/sharedlibrary.cpp b/source/sharedlibrary.cpp index 606593b..6a197ba 100644 --- a/source/sharedlibrary.cpp +++ b/source/sharedlibrary.cpp @@ -1,3 +1,4 @@ +#include #include #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)); }