diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-10-31 22:09:53 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-10-31 22:09:53 +0900 |
| commit | 23db5331a670f31b314ce178515cc8de625324dc (patch) | |
| tree | 0d64e36cc3f0de3da44cefd020a53482877c30ac | |
| parent | 378aa8a9c8f1af6b063c7d39b2e69eb106dabeef (diff) | |
| parent | 14bc76d578915af44a9659162fe9b36d1cfa09d1 (diff) | |
| download | mruby-23db5331a670f31b314ce178515cc8de625324dc.tar.gz mruby-23db5331a670f31b314ce178515cc8de625324dc.zip | |
Merge pull request #2628 from fenrir-naru/cygwin_host
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' |
