]> git.tdb.fi Git - builder.git/blobdiff - source/gnulinker.cpp
Don't store component locally in object and source files
[builder.git] / source / gnulinker.cpp
index 719780bb0441c0cc65e8c02f49ee300666cd1c20..13352870299778b8ba205092e3e742ed008be813 100644 (file)
@@ -63,7 +63,7 @@ Target *GnuLinker::create_target(const list<Target *> &sources, const string &ar
                        throw invalid_argument("GnuLinker::create_target");
        }
 
-       const Component &comp = objs.front()->get_component();
+       const Component &comp = *objs.front()->get_component();
        Binary *bin = 0;
        if(arg=="shared")
                bin = new SharedLibrary(builder, comp, objs);