diff options
| author | Tomoyuki Sahara <[email protected]> | 2014-05-09 14:26:12 +0900 |
|---|---|---|
| committer | Tomoyuki Sahara <[email protected]> | 2014-05-09 14:26:12 +0900 |
| commit | 6a4114958513d85053f9cdf993cf127c6666bf66 (patch) | |
| tree | aee8b51209466581aff0cfe51237b4dfa34f5732 | |
| parent | c071ad13a9df20e8e030320eef0a483bf4e64932 (diff) | |
| download | mruby-6a4114958513d85053f9cdf993cf127c6666bf66.tar.gz mruby-6a4114958513d85053f9cdf993cf127c6666bf66.zip | |
libreadline requires libtermcap on OpenBSD.
| -rw-r--r-- | mrbgems/mruby-bin-mirb/mrbgem.rake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mrbgems/mruby-bin-mirb/mrbgem.rake b/mrbgems/mruby-bin-mirb/mrbgem.rake index 4c9cdf29e..c4374b47e 100644 --- a/mrbgems/mruby-bin-mirb/mrbgem.rake +++ b/mrbgems/mruby-bin-mirb/mrbgem.rake @@ -5,6 +5,9 @@ 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' + end spec.linker.libraries << 'readline' elsif spec.build.cc.search_header_path 'linenoise.h' spec.cc.defines << "ENABLE_LINENOISE" |
