Skip to content

Commit

Permalink
Workaround libncurses.so as a linker script
Browse files Browse the repository at this point in the history
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: ruby/fiddle#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. :)
  • Loading branch information
nevans authored Apr 6, 2022
1 parent 8459a1c commit fd4bdb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/reline/terminfo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ def self.curses_dl_files
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

Expand Down

0 comments on commit fd4bdb3

Please sign in to comment.