A GCC cross-compiler targeting Linux musl
  • Shell 79.3%
  • CMake 20.7%
Find a file
2026-02-04 15:57:21 -03:00
.github/workflows Disable system root versioning for the musl toolchain 2026-02-03 00:13:35 -03:00
patches Import upstream changes from OBGGCC 2025-12-06 19:03:11 -03:00
submodules Disable system root versioning for the musl toolchain 2026-02-03 00:13:35 -03:00
tools Disable system root versioning for the musl toolchain 2026-02-03 00:13:35 -03:00
.editorconfig Initial commit 2023-04-12 21:22:16 -03:00
.gitattributes Initial commit 2023-04-12 21:22:16 -03:00
.gitmodules add nz 2026-01-31 14:37:02 -03:00
aarch64-unknown-linux-musl.sh Drop support for patchelf 2026-01-31 20:25:15 -03:00
armv6-unknown-linux-musleabihf.sh Update CMake and Autotools toolchains 2026-02-02 13:16:08 -03:00
armv7-unknown-linux-musleabihf.sh Update CMake and Autotools toolchains 2026-02-02 13:16:08 -03:00
build.sh Update hashes 2026-02-04 15:57:21 -03:00
i386-unknown-linux-musl.sh Drop support for patchelf 2026-01-31 20:25:15 -03:00
LICENSE Initial commit 2023-04-12 21:22:16 -03:00
README.md Update README 2026-01-10 18:33:46 -03:00
x86_64-unknown-linux-musl.sh Drop support for patchelf 2026-01-31 20:25:15 -03:00

musl-gcc-cross

This is a GCC cross-compiler targeting Linux musl. You can use it to create fully statically linked binaries that work on any Linux distro, or dynamically linked binaries suitable for use in Linux distros based on musl libc, such as Alpine Linux and Void Linux.

releases

The current release is based on GCC 15 and supports cross-compiling for the x86, x86_64, loongarch, powerpc, s390x, mips, riscv64, arm, and aarch64 targets. The toolchain includes support for the C and C++ frontends.

You can download the prebuilt toolchains from the releases page.