mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
link libncurses when there's /usr/include/curses.h; fix #2905
This commit is contained in:
@@ -20,6 +20,9 @@ MRuby::Gem::Specification.new('mruby-bin-mirb') do |spec|
|
||||
spec.linker.libraries << 'edit'
|
||||
else
|
||||
spec.linker.libraries << 'readline'
|
||||
if spec.build.cc.search_header_path 'curses.h'
|
||||
spec.linker.libraries << 'ncurses'
|
||||
end
|
||||
end
|
||||
elsif spec.build.cc.search_header_path 'linenoise.h'
|
||||
spec.cc.defines << "ENABLE_LINENOISE"
|
||||
|
||||
Reference in New Issue
Block a user