Cross-posting some info I found on linking C code when targeting Wasm.
tl;dr
The C ABI is different and not guaranteed to work.