emscripten-core / emscripten-core/emscripten

Feature request: environment variable to respect the `-shared` flag

Open
#16,481 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
C++
Stars
27.6k
Forks
3.6k
Avg merge
1d 1h
Merged PRs (30d)
105

Description

In Pyodide, we run into a fair amount of trouble convincing various build systems to pass `-s SIDE_MODULE=1` through to the compiler. Also, if a library asks to be `-shared` we always want to respect it. I finally thought to just patch
https://github.com/emscripten-core/emscripten/blob/ebe0ddde03145c0a2a197961bdf70dfde35cf957/emcc.py#L1565
to set `settings.SIDE_MODULE = True` but it would be helpful to have a feature for this.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.