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 \
$(! pkgconf libglvnd &&
echo -D gl_provider=gl) \
.. &&
ninja
Now, as the root user:
ninja install && rm -vf /usr/lib/libGLU.a
$(! pkgconf ...):
These commands check if the OpenGL provider is not libglvnd. If
it's not, it forces the build system to use libGL instead of libOpenGL.