link libncurses when there's /usr/include/curses.h; fix #2905

This commit is contained in:
Yukihiro "Matz" Matsumoto
2015-08-01 16:16:22 +09:00
parent f0040b5371
commit 52a9712c26
+3
View File
@@ -20,6 +20,9 @@ MRuby::Gem::Specification.new('mruby-bin-mirb') do |spec|
spec.linker.libraries << 'edit'
else
spec.linker.libraries << 'readline'
if spec.build.cc.search_header_path 'curses.h'
spec.linker.libraries << 'ncurses'
end
end
elsif spec.build.cc.search_header_path 'linenoise.h'
spec.cc.defines << "ENABLE_LINENOISE"