Skip to content

How do I use ports as runtime dynamic libraries? #21962

Closed Answered by Hex4dec
Hex4dec asked this question in Q&A
Discussion options

You must be logged in to vote

I've tried emcc -sSIDE_MODULE --use-port=regal null.c -o out/regal.wasm where null.c is an empty C source file. That doesn't work when linked to with dlopen().

Seems like emcc -sSIDE_MODULE=1 .../emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/pic/libregal.a -o regal.wasm works. Good enough!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sbc100
Comment options

Answer selected by Hex4dec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants