From 76c55b5bce0f181b0b15b16596c900397dfef544 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 6 Nov 2026 06:24:42 -0300 Subject: kinds #13, pdf.so: addons/pdf/pdf.c is the PDF kind against ABI 2.1 (its record the file's bytes, renders on jobs over two MuPDF lanes a cookie aborts, its strip laid out at `at` with crops and repainted rows for hover and selection, its text the body, search, links and PdfSections through look and text, P:F S places, PdfFit, PdfTint, PdfSections, its keys), pdf_bridge moves beside it, and the build makes it from position-independent MuPDF, FreeType and zlib exporting pardes_addon alone, installs /lib/pardes/addons/pdf.so, -Dmupdf now builds it or not and mupdf-check runs its addon-test script Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- mupdf.zig | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mupdf.zig') diff --git a/mupdf.zig b/mupdf.zig index 761fef92..48dca46b 100644 --- a/mupdf.zig +++ b/mupdf.zig @@ -45,11 +45,14 @@ pub fn add(b: *std.Build, io: std.Io, dependency: *std.Build.Dependency, options /// one it bundles (ZLIB_SRC): the two define the same symbols, as the /// FreeTypes do. zlib: *std.Build.Step.Compile, + /// Position-independent, for a shared library (the pdf addon). + pic: ?bool = null, }) Result { const module = b.createModule(.{ .target = options.target, .optimize = options.optimize, .link_libc = true, + .pic = options.pic, }); configureModule(module, dependency, options.jpx); // MuPDF's upstream release build defines NDEBUG independently of the -- cgit v1.3