This package provides the GL Utility library. This package isn't needed by any other in the book, but this package in BLFS has instructions that won't work on a system with libglvnd. Its installation is thus provided here. If you want, you may skip this package. But when in BLFS or SLFS, and a package lists GLU as a dependency, use this page for its installation to ensure compatibility instead of the one in BLFS.
Install GLU by running the following commands:
mkdir build &&
cd build &&
meson setup --prefix=$XORG_PREFIX \
--buildtype=release \
-D default_library=shared \
$(pkgconf opengl || echo -D gl_provider=gl) \
.. &&
ninja
Now, as the root user:
ninja install
-D default_library=shared:
This parameter ensures only the shared library is installed.
$(pkgconf ...): These
commands check if libOpenGL is
provided, or else it forces libGL to
be used instead.