aboutsummaryrefslogtreecommitdiffstats
path: root/tool
diff options
context:
space:
mode:
Diffstat (limited to 'tool')
-rw-r--r--tool/fake.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/tool/fake.rb b/tool/fake.rb
index 91dfb041c4..195ae0a5a0 100644
--- a/tool/fake.rb
+++ b/tool/fake.rb
@@ -9,6 +9,14 @@ class File
end
end
+[[libpathenv, "."], [preloadenv, libruby_so]].each do |env, path|
+ env or next
+ e = ENV[env] or next
+ e = e.split(File::PATH_SEPARATOR)
+ e.delete(File.expand_path(path, builddir)) or next
+ ENV[env] = (e.join(File::PATH_SEPARATOR) unless e.empty?)
+end
+
static = !!(defined?($static) && $static)
$:.unshift(builddir)
posthook = proc do