summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-05-09 14:45:25 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-05-09 14:45:25 +0900
commit64b30b65ee3f6787978dcd336e0c2490e290a3af (patch)
tree57912caa50b4cd92ccf99d62713fd61a45a34e61
parentb8e524bb9e0852b10c011d7953daf7284443fe95 (diff)
parent6a4114958513d85053f9cdf993cf127c6666bf66 (diff)
downloadmruby-64b30b65ee3f6787978dcd336e0c2490e290a3af.tar.gz
mruby-64b30b65ee3f6787978dcd336e0c2490e290a3af.zip
Merge pull request #2216 from iij/pr-mirb-link-termcap
libreadline requires libtermcap on OpenBSD.
-rw-r--r--mrbgems/mruby-bin-mirb/mrbgem.rake3
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"