Since 43ceb74eb1a5801662419fb66a6bf0d5414f1ec5 llvm-shlib links against the object libraries instead of static libraries.
This causes build failures if building Polly statically into LLVM as the dependency on it isn't propagated through LLVMExtension's object library variant.
Simply attach the transitive dependency to the object variant to fix this.
Fixes PR 49843.