I’m bundling a static library in a Kotlin project with cinterop, then making a shared library out of it. I noticed that public symbols from my C code are also exported in the final binary. Is there any way to avoid that?
j
Jan Holešovský
12/07/2023, 7:03 AM
It's possible to tell the linker to hide symbols; but not sure on which level you want to do it, and what is the best for you. But in my project, I have this in by build.gradle.kts: