]> git.tdb.fi Git - builder.git/commitdiff
Correctly fetch libmode when looking for dependencies of Binary
authorMikko Rasa <tdb@tdb.fi>
Mon, 2 Jan 2023 20:36:13 +0000 (22:36 +0200)
committerMikko Rasa <tdb@tdb.fi>
Mon, 2 Jan 2023 22:51:47 +0000 (00:51 +0200)
source/lib/binary.cpp

index 9d73785911d806c9ff5746403b66b271990219a5..ff8d658b13e9781e1640d2401564ae8578b1745c 100644 (file)
@@ -76,7 +76,7 @@ void Binary::find_dependencies(Target *tgt, vector<Target *> &static_libs, vecto
                if(l.size()>10 && !l.compare(l.size()-10, 10, ".framework"))
                        continue;
 
-               BuildInfo::LibraryMode libmode = component->get_build_info().get_libmode_for(l);
+               BuildInfo::LibraryMode libmode = binfo.get_libmode_for(l);
                Target *lib = builder.get_vfs().find_library(l, binfo.libpath, libmode);
                if(lib)
                {