blob: d76cfc3d740069398c890ba5b3c8fa32dd239f8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
$NetBSD: patch-tool_runruby.rb,v 1.1.2.2 2022/05/08 14:53:38 bsiegert Exp $
Do not LD_PRELOAD on macOS, breaks chroots.
--- tool/runruby.rb.orig 2022-04-12 11:11:15.000000000 +0000
+++ tool/runruby.rb
@@ -132,7 +132,7 @@ if File.file?(libruby_so)
e = nil if e.empty?
e ||= "LD_PRELOAD" if /linux/ =~ RUBY_PLATFORM
end
- if e
+ unless /darwin/ =~ RUBY_PLATFORM
env[e] = [libruby_so, ENV[e]].compact.join(File::PATH_SEPARATOR)
end
end
|