summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTomoyuki Sahara <[email protected]>2014-05-09 14:26:12 +0900
committerTomoyuki Sahara <[email protected]>2014-05-09 14:26:12 +0900
commit6a4114958513d85053f9cdf993cf127c6666bf66 (patch)
treeaee8b51209466581aff0cfe51237b4dfa34f5732
parentc071ad13a9df20e8e030320eef0a483bf4e64932 (diff)
downloadmruby-6a4114958513d85053f9cdf993cf127c6666bf66.tar.gz
mruby-6a4114958513d85053f9cdf993cf127c6666bf66.zip
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"