How does one link shared objects when compiling c ...
# kotlin-native
j
How does one link shared objects when compiling c interop?
o
you can pass
-linkerOpts -lfoo
to
cinterop
tool or use
linkerOpts
in .def file, like in https://github.com/JetBrains/kotlin-native/blob/6ee6f5907d808f21af06436e6c44b6fe2b9bb6b5/samples/gtk/src/main/c_interop/gtk3.def#L7