summaryrefslogtreecommitdiff
path: root/runruby.rb
diff options
context:
space:
mode:
Diffstat (limited to 'runruby.rb')
-rwxr-xr-xrunruby.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/runruby.rb b/runruby.rb
index 4eaa133224..ca831410f0 100755
--- a/runruby.rb
+++ b/runruby.rb
@@ -36,6 +36,8 @@ if extout
libs << abs_extout << File.expand_path(RUBY_PLATFORM, abs_extout)
end
config["bindir"] = abs_archdir
+ENV["RUBY"] = File.expand_path(ruby)
+ENV["PATH"] = [abs_archdir, ENV["PATH"]].compact.join(File::PATH_SEPARATOR)
if e = ENV["RUBYLIB"]
libs |= e.split(File::PATH_SEPARATOR)