mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #2628 from fenrir-naru/cygwin_host
Under cygwin host, ncurses.a is only available instead of termcap.a.
This commit is contained in:
@@ -6,7 +6,11 @@ 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'
|
||||
if MRUBY_BUILD_HOST_IS_CYGWIN then
|
||||
spec.linker.libraries << 'ncurses'
|
||||
else
|
||||
spec.linker.libraries << 'termcap'
|
||||
end
|
||||
end
|
||||
spec.linker.libraries << 'readline'
|
||||
elsif spec.build.cc.search_header_path 'linenoise.h'
|
||||
|
||||
Reference in New Issue
Block a user