In addition to this, you need to explicitly state which export
ed functions/variables you want to include in the Wasm output, either by passing -rdynamic
to include everything, or by repeatedly passing the --entry=<symbol>
for each symbol you want to include.
So the complete invocation is
zig build-exe ./math.zig -target wasm32-freestanding -fno-entry -rdynamic