Commit 14bc76d5 authored by M.Naruoka's avatar M.Naruoka

Under cygwin host, ncurses.a is only available instead of termcap.a.

parent 378aa8a9
......@@ -6,7 +6,11 @@ MRuby::Gem::Specification.new('mruby-bin-mirb') do |spec|
if spec.build.cc.search_header_path 'readline/readline.h'
spec.cc.defines << "ENABLE_READLINE"
if spec.build.cc.search_header_path 'termcap.h'
spec.linker.libraries << 'termcap'
if MRUBY_BUILD_HOST_IS_CYGWIN then
spec.linker.libraries << 'ncurses'
else
spec.linker.libraries << 'termcap'
end
end
spec.linker.libraries << 'readline'
elsif spec.build.cc.search_header_path 'linenoise.h'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment