7.4. Util-linux-ng-2.16.1

The Util-linux-ng package contains miscellaneous utility programs. Among them are utilities for handling file systems, consoles, partitions, and messages.

7.4.1. Installation of Util-linux-ng

Prepare Util-linux-ng for compilation:

CC="${CC} ${BUILD64}" ./configure --build=${CLFS_HOST} \
    --host=${CLFS_TARGET} --enable-login-utils \
    --disable-makeinstall-chown

Compile the package:

make

Install the package:

make DESTDIR=${CLFS} install

Copy Libraries and includes to /tools:

rm -fv ${CLFS}/usr/lib/lib{blkid,uuid}.la
cp -v ${CLFS}/usr/lib/lib{blkid,uuid}* /tools/lib
cp -v ${CLFS}/lib/lib{blkid,uuid}* /tools/lib
ln -sfv libblkid.so.1.1.0 /tools/lib/libblkid.so
ln -sfv libuuid.so.1.3.0 /tools/lib/libuuid.so
install -dv /tools/include/{blkid,uuid}
cp -av ${CLFS}/usr/include/blkid/* /tools/include/blkid/
cp -av ${CLFS}/usr/include/uuid/* /tools/include/uuid/

Details on this package are located in Section 10.18.3, “Contents of Util-linux-ng.”