Mojo does not currently support static linking. For now, users MUST use magic to run Mojo applications. This comes from a requirement to link with cpython, which doesn’t support musl particularly well, for the python interop features. Modular is aware that this is a strong desire for some users, like you and me, who are building pure mojo applications.
owenhilyard
(Owen Hilyard)
5
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Is it possible to statically link against libstdc++ | 0 | 132 | June 11, 2025 | |
| How to make an executable | 5 | 466 | June 10, 2025 | |
| Mojo roadmap questions: Building a library, and iOS support | 3 | 614 | February 24, 2025 | |
| Static Linking/Static Libraries | 0 | 244 | June 1, 2025 | |
| Mojo build and pixi deps | 2 | 217 | June 9, 2025 |