]> git.tdb.fi Git - builder.git/blobdiff - source/binary.cpp
Redesign the library mode system
[builder.git] / source / binary.cpp
index aa26608d695e46620ecfc57ae8a8383c83c70134..6c915de9749de661620696e07904ab8193371b39 100644 (file)
@@ -30,7 +30,7 @@ void Binary::find_depends()
 
        const SourcePackage &spkg = component->get_package();
        LibMode libmode = spkg.get_library_mode();
-       if(dynamic_cast<SharedLibrary *>(this))
+       if(dynamic_cast<SharedLibrary *>(this) && libmode<DYNAMIC)
                libmode = DYNAMIC;
 
        list<const Component *> queue;