Shaderc provides a suite of software, helping developers transform and compile GLSL/HLSL/SPIR-V shaders.
BLFS provides glslc from this package, but not all of the package which some other packages may expect.
Glslang and SPIRV-Tools
Allow building with the system-installed Glslang and SPIRV-Tools if present:
sed '/build-version/d' -i glslc/CMakeLists.txt && sed '/third_party/d' -i CMakeLists.txt && sed 's|SPIRV|glslang/&|' -i libshaderc_util/src/compiler.cc && echo '"2026.1"' > glslc/src/build-version.inc
Now install Shaderc by running the following commands:
mkdir build &&
cd build &&
cmake -D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release \
-D SHADERC_SKIP_TESTS=ON \
-G Ninja ..
ninja
Now, as the root user:
ninja install