This is kind of wrong fix from the perspective of properly maintaining dependencies of static libraries, but having cyclic dependencies and whole-archive for the test suit makes it very hard to do things properly. Pull Request: https://projects.blender.org/blender/blender/pulls/123123