summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-07 01:33:04 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-07 01:33:04 (GMT)
commit9cd35c22ab11dfc76cb125dc2695f922620a46e1 (patch)
tree55d34da2fcb6582ef0a051557b665ae388a24578 /tool
parenteb87580d5b455f9387685f15747bbed569d49b47 (diff)
fake.rb: set extout
* tool/fake.rb (prehook): set "extout" in RbConfig to configure extension libraries. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rw-r--r--tool/fake.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/tool/fake.rb b/tool/fake.rb
index 353a7b7..631444e 100644
--- a/tool/fake.rb
+++ b/tool/fake.rb
@@ -54,9 +54,11 @@ prehook = proc do |extmk|
mkconfig = RbConfig::MAKEFILE_CONFIG
mkconfig["builddir"] = config["builddir"] = builddir
mkconfig["top_srcdir"] = $top_srcdir if $top_srcdir
+ mkconfig["extout"] ||= $extout
config["top_srcdir"] = File.expand_path($top_srcdir ||= top_srcdir)
config["rubyhdrdir"] = join[$top_srcdir, "include"]
config["rubyarchhdrdir"] = join[builddir, config["EXTOUT"], "include", config["arch"]]
+ config["extout"] ||= join[$topdir, ".ext"]
mkconfig["libdirname"] = "builddir"
trace_var(:$ruby, posthook)
untrace_var(:$extmk, prehook)