Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Howto: Building for Linux with musl libc
The musl libc is an alternative libc for Linux. Some Linux distros, such as Sabotage, use it as a full-out replacement for glibc. On systems which use glibc by default, it is possible to "pseudo-crosscompile" binaries to use musl by using the
buildrump.sh requires at least musl after 0.9.12. With a sufficiently new musl, native musl distros are expected to just work. The rest of this page documents using musl-gcc.
Set the following environment variables:
CC=musl-gcc AR=ar NM=nm OBJCOPY=objcopy
Then run buildrump.sh. That's it. Note that virtif will not be built unless your musl environment offers the Linux kernel headers.