How to export C symbols in zig build?

Currently building a wasm module with zig and c, and I want to expose some C functions to be called by the runtime.
I couldn’t figure out how to pass linker flags from zig build…

Have you been using export fn and @export()?