diff --git a/mrbgems/mruby-bin-mirb/mrbgem.rake b/mrbgems/mruby-bin-mirb/mrbgem.rake index 9da98b8b0..64740035f 100644 --- a/mrbgems/mruby-bin-mirb/mrbgem.rake +++ b/mrbgems/mruby-bin-mirb/mrbgem.rake @@ -30,8 +30,7 @@ MRuby::Gem::Specification.new('mruby-bin-mirb') do |spec| File.exist?("#{lib_path}/libreadline.a") end spec.linker.library_paths << lib_path if lib_path - end - if spec.build.cc.search_header_path 'curses.h' + elsif spec.build.cc.search_header_path 'curses.h' spec.linker.libraries << 'ncurses' if spec.build.cc.search_header_path 'term.h' spec.linker.libraries << 'tinfo'