diff --git a/build.zig b/build.zig index d2c4b0ba7f..4b06f31640 100644 --- a/build.zig +++ b/build.zig @@ -168,12 +168,12 @@ pub fn build(b: *std.Build) !void { } const static_lib = b.addStaticLibrary(.{ - .name = "sodium", + .name = if (target.result.isMinGW()) "libsodium-static" else "sodium", .target = target, .optimize = optimize, }); const shared_lib = b.addSharedLibrary(.{ - .name = if (target.result.isMinGW()) "sodium_shared" else "sodium", + .name = if (target.result.isMinGW()) "libsodium" else "sodium", .target = target, .optimize = optimize, .strip = optimize != .Debug and !target.result.isMinGW(),