From a4fd2a791e4261bdfe726da20d2762956ab38cda Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 3 Oct 2015 15:09:47 +0000 Subject: ruby-runner * template/ruby-runner.c.in: wrapper to set dynamic loading path environment variable. /bin/sh on Mac OS X 10.11 (El Capitan) clears DYLD_LIBRARY_PATH. it must: - do nothing even if current directory is not present - do not set other environment variables, e.g. PWD, SHLVL, etc - do not open other FDs, e.g. pipes for timer thread git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- tool/runruby.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tool/runruby.rb') diff --git a/tool/runruby.rb b/tool/runruby.rb index 21735e8202..e6ddbf7f39 100755 --- a/tool/runruby.rb +++ b/tool/runruby.rb @@ -66,7 +66,7 @@ config["bindir"] = abs_archdir env = {} -env["RUBY"] = File.expand_path(ruby) +env["RUBY"] = File.join(abs_archdir, "ruby-runner#{config['EXEEXT']}") env["PATH"] = [abs_archdir, ENV["PATH"]].compact.join(File::PATH_SEPARATOR) if e = ENV["RUBYLIB"] -- cgit v1.2.3