diff options
Diffstat (limited to 'rubytest.rb')
-rw-r--r-- | rubytest.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/rubytest.rb b/rubytest.rb index 32b2844a9f..61b31ceaf1 100644 --- a/rubytest.rb +++ b/rubytest.rb @@ -17,9 +17,8 @@ if File.exist? CONFIG['LIBRUBY_SO'] ENV[dldpath] = x end -if File.exist? CONFIG['LIBRUBY_SO'] - ENV["LD_PRELOAD"] ||= "" - ENV["LD_PRELOAD"] += " ./#{CONFIG['LIBRUBY_SO']}" +if /linux/ =~ RUBY_PLATFORM and File.exist? CONFIG['LIBRUBY_SO'] + ENV["LD_PRELOAD"] = "./#{CONFIG['LIBRUBY_SO']}" end $stderr.reopen($stdout) |