mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
a6eb3e5c27
The build configuration for `mruby` assumes only the `ncurses` library needs to be linked because `tinfo` is implicitly pulled in. In environments where ncurses is available only as a static library, `tinfo` needs to be linked explicitly (needed for functions like `tputs`. This patch fixes that by linking `tinfo` if available. It also fixes the build for environments where only the `ncursesw` version of the library (including wide character support) is present, while still giving preference to the `ncurses` version (without wide character support).