This change is now released as part of 4.0.19
On Wed, Oct 29, 2025 at 1:00 PM Sam Clegg <[email protected]> wrote: > I just landed a fairly major update to emscripten's dynamic linking > support: https://github.com/emscripten-core/emscripten/pull/25522 > > Essentially we no longer build the main module as position independent > (`-pie`/``-sRELOCATABLE`). This reduces the code size and eliminates most > runtime relocations from the main module. > > Basically the overhead of using dynamic linking is almost completely > eliminated, at least in the main module. > > Hopefully we don't find any issues with this in the wild, and we > followup with more exciting changes. for example, perhaps turning on > `-Bdynamic` by default (i.e. allow shared libraries to be linked by > default, without needing the `-sMAIN_MODULE` flag, just like on native > platforms. > > cheers, > sam > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/emscripten-discuss/CAL_va2-PW_MkxAZT%2BYAO_T%3DAqW1AqnL5LV4j86o9--Fh-Rt-%3Dg%40mail.gmail.com.
