summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-09 07:36:16 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-02-09 07:36:16 +0000
commitab8dbd1082ea88b27ceb1f28c101ce75afff8cad (patch)
tree23d9ef4bfe0c48424fc5cefdaf24a58b01130099 /tool
parentaf775f2b2c841f71e2574ce37e327ab810aaeb78 (diff)
make-snapshot: no loading unexpected libraries
* tool/make-snapshot (package): get rid of loading unbundled and unexpected libraries. [ruby-core:67977] [Bug #10822] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rwxr-xr-xtool/make-snapshot5
1 files changed, 4 insertions, 1 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot
index 052ecf4..afdcab0 100755
--- a/tool/make-snapshot
+++ b/tool/make-snapshot
@@ -283,7 +283,10 @@ def package(vcs, rev, destdir, tmp = nil)
}
FileUtils.mkpath(hdrdir = "#{extout}/include/ruby")
File.open("#{hdrdir}/config.h", "w") {}
- miniruby = ENV['MINIRUBY'] + " -I. -rcross"
+ FileUtils.mkpath(defaults = "#{extout}/rubygems/defaults")
+ File.open("#{defaults}/operating_system.rb", "w") {}
+ File.open("#{defaults}/ruby.rb", "w") {}
+ miniruby = ENV['MINIRUBY'] + " -I. -I#{extout} -rcross"
mk = IO.read("Makefile.in").gsub(/^@.*\n/, '').gsub(/@([A-Za-z_]\w*)@/) {ENV[$1]}
mk << commonmk.gsub(/(?<!#)\{[^{}]*\}/, "")
cmd = %W[make -f -