diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-06 22:49:11 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-06 23:38:31 -0300 |
| commit | 8704fa7662f40d70552daa917144987a46e14b51 (patch) | |
| tree | a172f2cad349f8c5c6399281d39e2b65736463c5 /docs/shared-libs.md | |
| parent | c36e38e0a26f9bdef2892621b99390dedd35686d (diff) | |
| download | pardes-8704fa7662f40d70552daa917144987a46e14b51.tar.gz pardes-8704fa7662f40d70552daa917144987a46e14b51.zip | |
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 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'docs/shared-libs.md')
| -rw-r--r-- | docs/shared-libs.md | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/shared-libs.md b/docs/shared-libs.md index f6031a0d..73d6a73a 100644 --- a/docs/shared-libs.md +++ b/docs/shared-libs.md @@ -46,9 +46,10 @@ addons compiled in: image.zig as a module, its stb_image static in stb.c beside the binary's zstbi resize, and pdf.zig with MuPDF, its FreeType and zlib (the module exports `pardes_addon` only from its library, so the static binary reads its declaration), so the binary holds one copy of each. Addon.zig registers both at start as if -loaded. It loads no library (a static binary has no dlopen); it is also -the way a build for macOS, whose loader has no memfd, could have image and -PDF panes. +loaded. It loads no library (a static binary has no dlopen, and `Addon +load` says `not on this platform`). `zig build static -Dplatform=gui` is +the window's, linked dynamically with both addons in. Every build off Linux +is built this way too, since Addon.zig's loader is a Linux memfd. ## PDF panes became an addon (2026-11-06) |
