]> git.tdb.fi Git - builder.git/commitdiff
Include the threads flag if a static library needs it
authorMikko Rasa <tdb@tdb.fi>
Tue, 11 Nov 2014 07:16:15 +0000 (09:16 +0200)
committerMikko Rasa <tdb@tdb.fi>
Tue, 11 Nov 2014 07:16:15 +0000 (09:16 +0200)
source/binary.cpp

index 55e517a6190ffbb36075616593b3f71110e152bf..753ddbc391a427aae7c35487ac3395a76d08b512 100644 (file)
@@ -59,6 +59,8 @@ void Binary::find_dependencies()
                {
                        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 *> libs_to_process;