diff --git a/BUILD.md b/BUILD.md index 41dd80e3..bfe59f5c 100644 --- a/BUILD.md +++ b/BUILD.md @@ -23,20 +23,24 @@ This guide will mostly mention dependant packages by their Debian naming. - `extra-cmake-modules`. - zlib (`zlib1g-dev` on Debian 11 or Debian-based distributions). - Java Development Kit (Java JDK) (`openjdk-17-jdk` on Debian 11 or Debian-based distributions). -- Mesa GL headers (libgl1-mesa-dev on Debian 11 or Debian-based distributions). +- Mesa GL headers (`libgl1-mesa-dev` on Debian 11 or Debian-based distributions). - (Optional) `scdoc` to generate man pages.

Compiling

-

BUilding and installing on the system

+

Building and installing on the system

+ ``` cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/usr" -DENABLE_LTO=ON cmake --build build -j$(nproc) sudo cmake --install build ``` +

Building a portable binary

+ ``` cmake -S . -B build -DCMAKE_INSTALL_PREFIX=install cmake --build build -j$(nproc) cmake --install build cmake --install build --component portable ``` +