From dad4c41302de525a1456e9d5b738831487c8acac Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 31 Mar 2012 13:46:47 +0300 Subject: [PATCH] Fix an incorrect assumption of target name being the basename of its path --- source/sharedlibrary.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)); } -- 2.43.0