Skip to content

Building with -sMAIN_MODULE vs with -sSTRICT and -l<foo> linkage #24436

Open
@juj

Description

@juj

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.

Seen while fixing PR #24431 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions