From: Mikko Rasa Date: Mon, 2 Jan 2023 20:36:13 +0000 (+0200) Subject: Correctly fetch libmode when looking for dependencies of Binary X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=6280e72c03ae898efc76fa20706111f22c13b8a2;hp=e9d2021768806bee648274ec6ba3f8cac9a21db7;p=builder.git Correctly fetch libmode when looking for dependencies of Binary --- diff --git a/source/lib/binary.cpp b/source/lib/binary.cpp index 9d73785..ff8d658 100644 --- a/source/lib/binary.cpp +++ b/source/lib/binary.cpp @@ -76,7 +76,7 @@ void Binary::find_dependencies(Target *tgt, vector &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) {