diff options
Diffstat (limited to 'mupdf.zig')
| -rw-r--r-- | mupdf.zig | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |
