From 14bc76d578915af44a9659162fe9b36d1cfa09d1 Mon Sep 17 00:00:00 2001 From: "M.Naruoka" Date: Fri, 31 Oct 2014 16:48:50 +0900 Subject: Under cygwin host, ncurses.a is only available instead of termcap.a. --- mrbgems/mruby-bin-mirb/mrbgem.rake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mrbgems/mruby-bin-mirb/mrbgem.rake b/mrbgems/mruby-bin-mirb/mrbgem.rake index c4374b47e..6ddd97203 100644 --- a/mrbgems/mruby-bin-mirb/mrbgem.rake +++ b/mrbgems/mruby-bin-mirb/mrbgem.rake @@ -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' -- cgit v1.2.3