Skip to content

Commit 94acbdb

Browse files
committed
fix HAVE_LIBB2 check, require linker to find a symbol
1 parent b9871b7 commit 94acbdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,7 @@ const exe_config_set = struct {
11311131

11321132
// File and library support
11331133
.{ .HAVE_LARGEFILE_SUPPORT, "#include <sys/types.h>\nint main(){off_t offset = 0; return sizeof(offset) > 4;}" },
1134-
.{ .HAVE_LIBB2, "#include <blake2.h>\nint main(){blake2b_state state; return 0;}" },
1134+
.{ .HAVE_LIBB2, "#include <blake2.h>\nint main(){blake2b_state state; blake2s_final(&state, 0, 0); return 0;}" },
11351135
.{ .HAVE_LIBDB, "#include <db.h>\nint main(){DB *db; return 0;}" },
11361136
.{ .HAVE_LIBDL, "#include <dlfcn.h>\nint main(){dlopen(\"test\", RTLD_NOW); return 0;}" },
11371137
.{ .HAVE_LIBDLD, "int main(){return 0;}" }, // DLD library check

0 commit comments

Comments
 (0)