Skip to content
This repository has been archived by the owner on Apr 4, 2022. It is now read-only.

SNSystems/musl-prepo

Repository files navigation

Musl Libc with Program Repository Support

This git repository contains a copy of musl libc (forked from musl-libc@cfdfd5ea with modifications to output to a Program Repository.

Build musl-libc with the Program Repository Compiler

First create the llvm-prepo container, then install the tools on which the build depends:

sudo apt-get update
sudo apt-get install -y git python

Clone the musl-prepo project via:

git clone https://github.com/SNSystems/musl-prepo

Then configure and build musl-prepo:

./configure --disable-shared --prefix=~/musl
make -j $(nproc)

Finally, install musl-prepo.

make install

Musl Libc

musl, pronounced like the word "mussel", is an MIT-licensed implementation of the standard C library targetting the Linux syscall API, suitable for use in a wide range of deployment environments. musl offers efficient static and dynamic linking support, lightweight code and low runtime overhead, strong fail-safe guarantees under correct usage, and correctness in the sense of standards conformance and safety. musl is built on the principle that these goals are best achieved through simple code that is easy to understand and maintain.

The 1.1 release series for musl features coverage for all interfaces defined in ISO C99 and POSIX 2008 base, along with a number of non-standardized interfaces for compatibility with Linux, BSD, and glibc functionality.

For basic installation instructions, see the included INSTALL file. Information on full musl-targeted compiler toolchains, system bootstrapping, and Linux distributions built on musl can be found on the project website.