From 8704fa7662f40d70552daa917144987a46e14b51 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 6 Nov 2026 22:49:11 -0300 Subject: kinds #49, the static builds: `zig build static -Dplatform=tui -Dtarget=x86_64-linux-musl` and `zig build static -Dplatform=gui` (dynamic, both addons in) build and open a PNG and a PDF over 9P with `/addons` saying builtin; `Addon load` in a pardes with its addons compiled in is refused in words (`not on this platform: its addons are compiled in`) rather than by a failed dlopen, and building.typ and shared-libs.md name the gui's static step Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- docs/typ/building.typ | 1 + 1 file changed, 1 insertion(+) (limited to 'docs/typ') diff --git a/docs/typ/building.typ b/docs/typ/building.typ index 151d4b3f..61641cba 100644 --- a/docs/typ/building.typ +++ b/docs/typ/building.typ @@ -30,6 +30,7 @@ MuPDF is compiled only for the steps and tests that use `pdf.so`. [`zig build -Dplatform=gui`], [the SDL3 window alone], [`zig build -Dplatform=macos`], [an AppKit and CoreText app over a static `libpardes.a` (`docs/macos.md`)], [`zig build static -Dplatform=tui -Dtarget=x86_64-linux-musl`], [one statically linked `pardes` with the image and PDF addons compiled in (`/addons` lists them `builtin`); musl's, as glibc links only dynamically, and never the default], + [`zig build static -Dplatform=gui`], [`pardes-gui` with the two addons compiled in, linked dynamically (SDL and the GPU take the display's libraries)], ) A bare `zig build` installs into the prefix (`zig-out`, or `--prefix -- cgit v1.3