1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-19 10:05:05 -07:00

Define SODIUM_STATIC for static builds on Windows

Fixes #1278
This commit is contained in:
Frank Denis 2023-04-27 08:21:13 +02:00
parent 8d9ab6cd76
commit d787d2b1cf

View File

@ -86,6 +86,9 @@ pub fn build(b: *std.build.Builder) !void {
.windows => {
lib.defineCMacro("HAVE_RAISE", "1");
lib.defineCMacro("HAVE_SYS_PARAM_H", "1");
if (lib == static) {
lib.defineCMacro("SODIUM_STATIC", "1");
}
},
.macos => {
lib.defineCMacro("ASM_HIDE_SYMBOL", ".private_extern");