diff options
Diffstat (limited to 'docs/shared-libs.md')
| -rw-r--r-- | docs/shared-libs.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/docs/shared-libs.md b/docs/shared-libs.md index 384dc2f1..4a07f80a 100644 --- a/docs/shared-libs.md +++ b/docs/shared-libs.md @@ -29,6 +29,18 @@ pdf` (or `zig build addons`, both) builds and installs each library in home install). MuPDF is compiled only for a step that needs it (`pdf`, the tests); `-Dmupdf` is gone. +## One static pardes (2026-11-06) + +`zig build static -Dplatform=tui -Dtarget=x86_64-linux-musl` links the +terminal binary statically (musl: glibc links only dynamically) with both +addons compiled in: image.zig as a module, its stb_image static in stb.c +beside the binary's zstbi resize, and pdf.c with MuPDF, its FreeType and +zlib, its export renamed (`-Dpardes_addon=pardes_addon_pdf`), 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. + ## PDF panes became an addon (2026-11-06) `lib/pardes/addons/pdf.so` (addons/pdf/pdf.c and pdf_bridge.c) holds MuPDF, |
