fix(loader): link with libc on OpenBSD to compile parser

Fix tree-sitter/tree-sitter#5333

Signed-off-by: Laurent Cheylus <foxy@free.fr>
This commit is contained in:
Laurent Cheylus 2026-02-28 18:26:53 +01:00 committed by Will Lillis
parent 1f9b274dfb
commit 2f747dc9b1

View file

@ -1276,6 +1276,8 @@ impl Loader {
} else {
command.arg("-shared");
command.arg("-Wl,--no-undefined");
#[cfg(target_os = "openbsd")]
command.arg("-lc");
}
command.args(cc_config.get_files());
command.arg("-o").arg(output_path);