fix(rust): change tinfo linking to ncurses

- tinfo is a part of the ncurses project.
- tinfo does not seem easily installable stand alone
  (no brew install tinfo, no dnf install tinfo-devel, etc)
  but installing ncurses is possible and generally makes tinfo
  'findable'
- on macos (M1 mac) it seems that even with ncurses installed
  tinfo is not found, but linking to ncurses fixes the problem
This commit is contained in:
tmontaigu
2023-01-13 19:32:50 +01:00
parent 2fe402f55e
commit d188cfae54

View File

@@ -318,7 +318,7 @@ so your compiler/linker will have to lookup libs and include dirs on their own"
println!("cargo:rustc-link-lib=static={}", llvm_static_lib);
}
// required by llvm
println!("cargo:rustc-link-lib=tinfo");
println!("cargo:rustc-link-lib=ncurses");
if let Some(name) = get_system_libcpp() {
println!("cargo:rustc-link-lib={}", name);
}