| ... | @@ -2192,7 +2192,8 @@ const TransitiveDeps = struct { | ... | @@ -2192,7 +2192,8 @@ const TransitiveDeps = struct { |
| 2192 | if ((try td.seen_steps.fetchPut(&inner_other.step, {})) != null) | 2192 | if ((try td.seen_steps.fetchPut(&inner_other.step, {})) != null) |
| 2193 | continue; | 2193 | continue; |
| 2194 | | 2194 | |
| 2195 | if (!dyn) | 2195 | const included_in_lib = (other.kind == .lib and inner_other.kind == .obj); |
| | 2196 | if (!dyn and !included_in_lib) |
| 2196 | try td.link_objects.append(other_link_object); | 2197 | try td.link_objects.append(other_link_object); |
| 2197 | | 2198 | |
| 2198 | try addInner(td, inner_other, dyn or inner_other.isDynamicLibrary()); | 2199 | try addInner(td, inner_other, dyn or inner_other.isDynamicLibrary()); |