1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/reline] Workaround libncurses.so as a linker script

This maybe isn't probably isn't the best approach, but it will allow
`Fiddle::Terminfo.curses_dl` to work.  I documented more details about
this in an issue on fiddle: https://github.com/ruby/fiddle/issues/107

It is probably better to deal with it there.  But this is workaround is
simpler.

FYI: `reline` itself seems to be working just fine for me _without_
loading ncurses.  But I wanted to be able to use `Reline::Terminfo` for
my own projects. :)

https://github.com/ruby/reline/commit/fd4bdb35e2
This commit is contained in:
nicholas a. evans 2022-04-06 18:31:48 -04:00 committed by git
parent 0c36ba5319
commit d020334e9e

View file

@ -24,7 +24,8 @@ module Reline::Terminfo
when /darwin/
%w[libncursesw.dylib libcursesw.dylib libncurses.dylib libcurses.dylib]
else
%w[libncursesw.so libcursesw.so libncurses.so libcurses.so]
%w[libncursesw.so libcursesw.so libncurses.so libcurses.so
libncursesw.so.6 libncurses.so.6]
end
end