summaryrefslogtreecommitdiff
path: root/instruby.rb
diff options
context:
space:
mode:
Diffstat (limited to 'instruby.rb')
-rw-r--r--instruby.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/instruby.rb b/instruby.rb
index 444b7e6465..da773c0825 100644
--- a/instruby.rb
+++ b/instruby.rb
@@ -66,7 +66,11 @@ if RUBY_PLATFORM =~ /-aix/
end
Dir.chdir "ext"
-system "../miniruby#{exeext} extmk.rb install #{destdir}"
+if defined? CROSS_COMPILING
+ system "#{CONFIG['MINIRUBY']} extmk.rb install #{destdir}"
+else
+ system "../miniruby#{exeext} extmk.rb install #{destdir}"
+end
Dir.chdir CONFIG["srcdir"]
Find.find("lib") do |f|