]> git.tdb.fi Git - builder.git/blobdiff - source/sharedlibrary.cpp
Move some install location assignments to more logical places
[builder.git] / source / sharedlibrary.cpp
index 6a197bac08c69535ccb53fd98b62d6a04c7c189f..fac651a8e3518737187f817c0d4d14ee2575e036 100644 (file)
@@ -12,7 +12,14 @@ SharedLibrary::SharedLibrary(Builder &b, const Component &c, const list<ObjectFi
        Binary(b, c, objs),
        Library(b, &c.get_package(), path, c.get_name()),
        soname(create_soname(c))
-{ }
+{
+       install_location = "lib";
+       if(comp.get_type()==Component::MODULE)
+       {
+               install_location += '/';
+               install_location += package->get_name();
+       }
+}
 
 string SharedLibrary::create_soname(const Component &c)
 {