зеркало из https://github.com/github/ruby.git
[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:
Родитель
0c36ba5319
Коммит
d020334e9e
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче