Skip to content

How to dynamically link? #23246

Answered by sbc100
guest271314 asked this question in Q&A
Dec 22, 2024 · 2 comments · 9 replies
Discussion options

You must be logged in to vote

Emscripten does support dynamic linking in the form of the -sMAIN_MODULE and -sSIDE_MODULE settings. See https://emscripten.org/docs/compiling/Dynamic-Linking.html.

However unless you application absolutely requires it I would try to instead build without dyanmic linking and link statically. This will almost always be preferable and will result in smaller and faster code on the web.

In other words I would first try to modify the hermes build scripts to avoid dynamic linking when targeting emscripten.

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
3 replies
@guest271314
Comment options

@guest271314
Comment options

@sbc100
Comment options

Answer selected by guest271314
Comment options

You must be logged in to vote
6 replies
@guest271314
Comment options

@guest271314
Comment options

@guest271314
Comment options

@guest271314
Comment options

@guest271314
Comment options

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