glslc from shaderc-2026.1

#### Beyond Linux® From Scratch (systemd Edition) - Version r13.0-475

### Chapter 11. General Utilities

- Prev

  editorconfig-core-c-0.12.11

- Next

  Graphviz-14.1.5

- Up
- Home

# glslc from shaderc-2026.1

## Introduction to glslc

The glslc program is Google's command line compiler for OpenGL Shading Language/High Level Shading Language (GLSL/HLSL) to Standard Portable Intermediate Representation (SPIR-V).

### Note

Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.

### Package Information

- Download (HTTP): https://github.com/google/shaderc/archive/v2026.1/shaderc-2026.1.tar.gz

- Download MD5 sum: 40b0c03215e94a32b38e6cdfbb068bb5

- Download size: 224 KB

- Estimated disk space required: 3.7 MB

- Estimated build time: less than 0.1 SBU

### Glslc Dependencies

#### Required

CMake-4.3.2, Glslang-16.2.0, and SPIRV-Tools-1.4.341.0

## Installation of glslc

First, allow building with system Glslang-16.2.0 and SPIRV-Tools-1.4.341.0:

    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 glslc 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 glslc/glslc

Now, as the `root` user:

    install -vm755 glslc/glslc /usr/bin

## Contents

Installed Programs: glslc
Installed Libraries: None
Installed Directories: None

### Short Descriptions

glslc | compiles OpenGL Shading Language/High Level Shading Language (GLSL/HLSL) shaders to SPIR-V

- Prev

  editorconfig-core-c-0.12.11

- Next

  Graphviz-14.1.5

- Up
- Home