зеркало из https://github.com/github/ruby.git
* runruby.rb: prepend LIBRUBY_SO to LD_PRELOAD as well as rubytest.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
807a93be08
Коммит
bebc2eb8c7
|
@ -1,3 +1,7 @@
|
|||
Wed Dec 8 03:26:41 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* runruby.rb: prepend LIBRUBY_SO to LD_PRELOAD as well as rubytest.rb.
|
||||
|
||||
Wed Dec 08 01:35:44 2004 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* win32/win32.c (is_socket): reorder of function definitions.
|
||||
|
|
11
runruby.rb
11
runruby.rb
|
@ -44,9 +44,14 @@ if e = ENV["RUBYLIB"]
|
|||
end
|
||||
ENV["RUBYLIB"] = $:.replace(libs).join(File::PATH_SEPARATOR)
|
||||
|
||||
if File.file?(File.join(archdir, config['LIBRUBY_SO'])) and
|
||||
e = config['LIBPATHENV'] and !e.empty?
|
||||
ENV[e] = [abs_archdir, ENV[e]].compact.join(File::PATH_SEPARATOR)
|
||||
libruby_so = File.join(abs_archdir, config['LIBRUBY_SO'])
|
||||
if File.file?(libruby_so)
|
||||
if e = config['LIBPATHENV'] and !e.empty?
|
||||
ENV[e] = [abs_archdir, ENV[e]].compact.join(File::PATH_SEPARATOR)
|
||||
end
|
||||
if /linux/ =~ RUBY_PLATFORM
|
||||
ENV["LD_PRELOAD"] = [libruby_so, ENV["LD_PRELOAD"]].compact.join(' ')
|
||||
end
|
||||
end
|
||||
|
||||
exec ruby, *ARGV
|
||||
|
|
Загрузка…
Ссылка в новой задаче