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 \
  CROSS_COMPILE=${CLFS_TARGET}- \
  --prefix=/ \
  --disable-static \
  --target=${CLFS_TARGET}

Compile the package:

make

Install just the shared library:

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

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