-SharedLibrary::SharedLibrary(Builder &b, const Component &c, const list<ObjectFile *> &objs):
- FileTarget(b, &c.get_package(), generate_target_path(c)),
- Binary(b, c, objs),
- Library(b, &c.get_package(), path, c.get_name()),
- soname(create_soname(c))
-{ }
+SharedLibrary::SharedLibrary(Builder &b, const Msp::FS::Path &p):
+ Binary(b, p)
+{
+ libname = FS::basepart(FS::basename(path));
+ if(!libname.compare(0, 3, "lib"))
+ libname = libname.substr(3);
+}