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 | 141 | June 11, 2025 | |
| How to make an executable | 5 | 536 | June 10, 2025 | |
| Mojo roadmap questions: Building a library, and iOS support | 3 | 665 | February 24, 2025 | |
| Static Linking/Static Libraries | 0 | 273 | June 1, 2025 | |
| Does Mojo support cross-compilation for GPU targets on non-GPU platforms? | 5 | 194 | September 8, 2026 |