You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Building with -sMAIN_MODULE vs with -sSTRICT and -l<foo> linkage #24436
When building with -sSTRICT, one must explicitly link in e.g. GL and HTML5 JS libraries with -lGL and -lhtml5. The intent was to avoid accidental pollution of symbols into users's builds if they so need.
When building with -sMAIN_MODULE however, it looks like one cannot manually pass -lGL or -lhtml5, or errors about duplicate symbols will result.
Activity
sbc100 commentedon May 30, 2025
I think this is a side effect of the fact that
-sMAIN_MODULE=1(not-sMAIN_MODULE=2) forces all libraries to be included via-Wl,--whole-archive.juj commentedon Nov 30, 2026
Looks like this was fixed by #25449 (October 2025).
[test] Remove stale STRICT-only -lhtml5/-lGL workarounds in MAIN_MODU…
[test] Remove stale STRICT-only -lhtml5/-lGL workarounds in MAIN_MODU…