5.34. Util-linux-2.30.1

The Util-linux package contains miscellaneous utility programs.

Approximate build time: 0.8 SBU
Required disk space: 123 MB

5.34.1. Installation of Util-linux

Prepare Util-linux for compilation:

./configure --prefix=/tools                \
            --without-python               \
            --disable-makeinstall-chown    \
            --without-systemdsystemunitdir \
            --without-ncurses              \

The meaning of the configure option:


This switch disables using Python if it is installed on the host system. It avoids trying to build unneeded bindings.


This switch disables using the chown command during installation. This is not needed when installing into the /tools directory and avoids the necessity of installing as root.


This switch disables using the ncurses library for the build process. This is not needed when installing into the /tools directory and avoids problems on some host distros.


On systems that use systemd, the package tries to install a systemd specific file to a non-existent directory in /tools. This switch disables the unnecessary action.


Setting this environment variable prevents adding unneeded features that may be available on the host. Note that the location shown for setting this environment variable is different from other LFS sections where variables are set preceding the command. This location is shown to demonstrate an alternative way of setting an environment variable when using configure.

Compile the package:


Install the package:

make install