summaryrefslogtreecommitdiff
path: root/mupdf.zig
diff options
context:
space:
mode:
Diffstat (limited to 'mupdf.zig')
-rw-r--r--mupdf.zig3
1 files changed, 3 insertions, 0 deletions
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