Do not collect objects from dependencies of object libraries
Object libraries do not link and therefore do not need to consider the object files from "linked" dependencies on other object libraries.
This was an oversight in !1524 (merged).
Fixes: #19744 (closed)