]> git.tdb.fi Git - builder.git/blobdiff - source/binary.cpp
Use build info to store static library dependencies
[builder.git] / source / binary.cpp
index e5968c0de411d8c548b0365e69099adfc276aa8a..fcf30f1d1fca03170f868ac7423ced7d37605683 100644 (file)
@@ -56,7 +56,12 @@ void Binary::find_dependencies()
                BuildInfo binfo;
                tgt->collect_build_info(binfo);
                if(tgt!=this)
+               {
                        static_binfo.libpath.insert(static_binfo.libpath.end(), binfo.libpath.begin(), binfo.libpath.end());
+                       static_binfo.keep_symbols.insert(static_binfo.keep_symbols.end(), binfo.keep_symbols.begin(), binfo.keep_symbols.end());
+                       if(binfo.threads)
+                               static_binfo.threads = true;
+               }
 
                list<Target *>::iterator insert_pos = j;
                ++insert_pos;