-
I'm porting OpenJDK to Emscripten, and as Java programs can call natives with runtime dynamic linking, it would be nice to get some libraries like Regal, GLFW, and so on and so forth working. Is cloning the ports I require and then building them as side modules the only approach? Is there some magic I can do with |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I've tried Seems like |
Beta Was this translation helpful? Give feedback.
I've tried
emcc -sSIDE_MODULE --use-port=regal null.c -o out/regal.wasm
wherenull.c
is an empty C source file. That doesn't work when linked to withdlopen()
.Seems like
emcc -sSIDE_MODULE=1 .../emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten/pic/libregal.a -o regal.wasm
works. Good enough!