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

Fix tree-sitter/tree-sitter#5333

Signed-off-by: Laurent Cheylus <foxy@free.fr>
(cherry picked from commit 2f747dc9b1)
This commit is contained in:
Laurent Cheylus 2026-02-28 18:26:53 +01:00 committed by Amaan Qureshi
parent 16c7bfb48f
commit c802b44dff

View file

@ -1193,6 +1193,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);