I have a related issue open: <https://github.com/nim-lang/Nim/issues/11406#issuecomment-955931469>
Instead of static libs, my purpose is to generate multiple Nim compiled .so files (`--app:lib`) and link them in a C++ codebase, and I am unable to do that so far.