I think I found a bug in the gradle multiplatform plugin. It's related to compiling for native targets. When you have project A that depends on project B, and project B has a cinterop library, the
linkerOpts
from its configuration are not included when the target for project A is linked.