summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorM.Naruoka <[email protected]>2014-10-31 16:48:50 +0900
committerM.Naruoka <[email protected]>2014-10-31 16:48:50 +0900
commit14bc76d578915af44a9659162fe9b36d1cfa09d1 (patch)
tree0d64e36cc3f0de3da44cefd020a53482877c30ac
parent378aa8a9c8f1af6b063c7d39b2e69eb106dabeef (diff)
downloadmruby-14bc76d578915af44a9659162fe9b36d1cfa09d1.tar.gz
mruby-14bc76d578915af44a9659162fe9b36d1cfa09d1.zip
Under cygwin host, ncurses.a is only available instead of termcap.a.
-rw-r--r--mrbgems/mruby-bin-mirb/mrbgem.rake6
1 files changed, 5 insertions, 1 deletions
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'