always link gmime

This commit is contained in:
Emil Lerch 2025-10-15 17:20:58 -07:00
parent 2941a4fc5e
commit 39a1cb530e
Signed by: lobo
GPG key ID: A7B62D657EF764F8

View file

@ -135,6 +135,7 @@ pub fn build(b: *std.Build) !void {
fn configure(compile: *std.Build.Step.Compile, paths: std.zig.system.NativePaths, reload_paths: bool) void { fn configure(compile: *std.Build.Step.Compile, paths: std.zig.system.NativePaths, reload_paths: bool) void {
compile.linkLibC(); compile.linkLibC();
compile.linkSystemLibrary("notmuch"); compile.linkSystemLibrary("notmuch");
compile.linkSystemLibrary2("gmime-3.0", .{ .use_pkg_config = .force });
// These are only needed if we are in nix develop shell // These are only needed if we are in nix develop shell
if (!reload_paths) return; if (!reload_paths) return;
@ -144,8 +145,6 @@ fn configure(compile: *std.Build.Step.Compile, paths: std.zig.system.NativePaths
compile.addIncludePath(.{ .cwd_relative = dir }); compile.addIncludePath(.{ .cwd_relative = dir });
for (paths.rpaths.items) |dir| for (paths.rpaths.items) |dir|
compile.addRPath(.{ .cwd_relative = dir }); compile.addRPath(.{ .cwd_relative = dir });
compile.linkSystemLibrary2("gmime-3.0", .{ .use_pkg_config = .force });
} }
fn checkNix(b: *std.Build, target_query: *std.Target.Query) !std.zig.system.NativePaths { fn checkNix(b: *std.Build, target_query: *std.Target.Query) !std.zig.system.NativePaths {