mirror of
https://github.com/tree-sitter/tree-sitter.git
synced 2026-09-10 07:26:23 -04:00
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:
parent
16c7bfb48f
commit
c802b44dff
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue