5.5. musl-1.1.16

The musl package contains the main C library. This library provides the basic routines for allocating memory, searching directories, opening and closing files, reading and writing files, string handling, pattern matching, arithmetic, and so on. We build it again here so that it can be installed into our targetfs sysroot but this time we only build the shared object version.

5.5.1. Installation of musl

Configure the package:

./configure \
  --prefix=/ \
  --disable-static \

Compile the package:


Install just the shared library:

DESTDIR=${CLFS}/targetfs make install-libs

Details on this package are located in Section 4.8.2, “Contents of musl.”