]> git.tdb.fi Git - builder.git/blobdiff - source/staticlibrary.cpp
Move the Component reference to Target and make it a pointer
[builder.git] / source / staticlibrary.cpp
index c7fd78157b5ead882954dd1274464949fa9fdedf..45ec3df5b64a0251ae00506706f7b4ae81314de6 100644 (file)
@@ -7,10 +7,9 @@ using namespace std;
 
 StaticLibrary::StaticLibrary(Builder &b, const Component &c, const list<ObjectFile *> &objs):
        FileTarget(b, &c.get_package(), generate_target_path(c)),
-       Library(b, package, path, c.get_name()),
-       comp(c)
+       Library(b, package, path, c.get_name())
 {
-       buildable = true;
+       component = &c;
        for(list<ObjectFile *>::const_iterator i=objs.begin(); i!=objs.end(); ++i)
                add_depend(*i);