summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-bin-mirb/mrbgem.rake
diff options
context:
space:
mode:
Diffstat (limited to 'mrbgems/mruby-bin-mirb/mrbgem.rake')
-rw-r--r--mrbgems/mruby-bin-mirb/mrbgem.rake7
1 files changed, 7 insertions, 0 deletions
diff --git a/mrbgems/mruby-bin-mirb/mrbgem.rake b/mrbgems/mruby-bin-mirb/mrbgem.rake
index fa0947cfa..c31ac7ae9 100644
--- a/mrbgems/mruby-bin-mirb/mrbgem.rake
+++ b/mrbgems/mruby-bin-mirb/mrbgem.rake
@@ -5,6 +5,8 @@ MRuby::Gem::Specification.new('mruby-bin-mirb') do |spec|
if spec.build.cc.search_header_path 'readline/readline.h'
spec.cc.defines << "MRB_USE_READLINE"
+ spec.cc.defines << "MRB_READLINE_HEADER='<readline/readline.h>'"
+ spec.cc.defines << "MRB_READLINE_HISTORY='<readline/history.h>'"
if spec.build.cc.search_header_path 'termcap.h'
if MRUBY_BUILD_HOST_IS_CYGWIN || MRUBY_BUILD_HOST_IS_OPENBSD
if spec.build.cc.search_header_path 'termcap.h'
@@ -33,6 +35,11 @@ MRuby::Gem::Specification.new('mruby-bin-mirb') do |spec|
spec.linker.libraries << 'ncurses'
end
end
+ elsif spec.build.cc.search_header_path 'edit/readline/readline.h'
+ spec.cc.defines << "MRB_USE_READLINE"
+ spec.cc.defines << "MRB_READLINE_HEADER='<edit/readline/readline.h>'"
+ spec.cc.defines << "MRB_READLINE_HISTORY='<edit/readline/history.h>'"
+ spec.linker.libraries << "edit"
elsif spec.build.cc.search_header_path 'linenoise.h'
spec.cc.defines << "MRB_USE_LINENOISE"
end