diff options
| author | M.Naruoka <[email protected]> | 2014-10-31 16:48:50 +0900 |
|---|---|---|
| committer | M.Naruoka <[email protected]> | 2014-10-31 16:48:50 +0900 |
| commit | 14bc76d578915af44a9659162fe9b36d1cfa09d1 (patch) | |
| tree | 0d64e36cc3f0de3da44cefd020a53482877c30ac | |
| parent | 378aa8a9c8f1af6b063c7d39b2e69eb106dabeef (diff) | |
| download | mruby-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.rake | 6 |
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' |
