Commit 486870e3 authored by Tomoyuki Sahara's avatar Tomoyuki Sahara

NetBSD does not have libreadline but readline(3) is in libedit.

parent 48b63b1c
...@@ -12,7 +12,11 @@ MRuby::Gem::Specification.new('mruby-bin-mirb') do |spec| ...@@ -12,7 +12,11 @@ MRuby::Gem::Specification.new('mruby-bin-mirb') do |spec|
spec.linker.libraries << 'termcap' spec.linker.libraries << 'termcap'
end end
end end
if RUBY_PLATFORM.include?('netbsd')
spec.linker.libraries << 'edit'
else
spec.linker.libraries << 'readline' spec.linker.libraries << 'readline'
end
elsif spec.build.cc.search_header_path 'linenoise.h' elsif spec.build.cc.search_header_path 'linenoise.h'
spec.cc.defines << "ENABLE_LINENOISE" spec.cc.defines << "ENABLE_LINENOISE"
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment