Workspace link static c/c++ library - release vs debug

There is also a great compilation of resources for linking from an older topic, maybe you will find an answer there:

I find this section very interesting: Using C libraries in Rust: make a sys crate