X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fsharedlibrary.cpp;h=4ef9bb6fdf09bfd76ab7820f6cbc4f58515e1d5b;hb=82c7d6187fdaeaa1b9cfbd6637d9b047a78f17ec;hp=5e479f3c9f652f64c03a9ab3eb472ae645c807ed;hpb=bf0883b6dd3946612922aa1b7c04a87d06442df7;p=builder.git diff --git a/source/sharedlibrary.cpp b/source/sharedlibrary.cpp index 5e479f3..4ef9bb6 100644 --- a/source/sharedlibrary.cpp +++ b/source/sharedlibrary.cpp @@ -18,7 +18,7 @@ SharedLibrary::SharedLibrary(Builder &b, const Msp::FS::Path &p): libname = libname.substr(3); } -SharedLibrary::SharedLibrary(Builder &b, const Component &c, const list &objs): +SharedLibrary::SharedLibrary(Builder &b, const Component &c, const vector &objs): Binary(b, c, generate_filename(c), objs), libname(c.get_name()), import_lib(0) @@ -48,8 +48,8 @@ SharedLibrary::SharedLibrary(Builder &b, const Component &c, const list::const_iterator i=objects.begin(); i!=objects.end(); ++i) - (*i)->set_used_in_shared_library(true); + for(ObjectFile *o: objects) + o->set_used_in_shared_library(true); } string SharedLibrary::generate_filename(const Component &comp)