summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-06 17:06:20 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-06 17:06:20 +0000
commit1007748627ab21a7e397c45d6686e753687aebb2 (patch)
tree3b7f4062381d8d8c0caba794b6b8acff34cdd4fe /template
parent9784c5c8f16c3c32f045c984f950c9137c42cf31 (diff)
* template/fake.rb.in: not define $extout to make target in cwd.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'template')
-rwxr-xr-xtemplate/fake.rb.in9
1 files changed, 5 insertions, 4 deletions
diff --git a/template/fake.rb.in b/template/fake.rb.in
index df36b09..827fa67 100755
--- a/template/fake.rb.in
+++ b/template/fake.rb.in
@@ -22,18 +22,19 @@ prehook = proc do
config = RbConfig::CONFIG
mkconfig = RbConfig::MAKEFILE_CONFIG
mkconfig["top_srcdir"] = $top_srcdir = File.expand_path("@abs_top_srcdir@")
- $extout = File.expand_path(mkconfig["EXTOUT"], mkconfig["topdir"])
- mkconfig["extout"] = config["extout"] = $extout
mkconfig["rubyhdrdir"] = "$(top_srcdir)/include"
+ mkconfig["builddir"] = config["builddir"] = File.expand_path(File.dirname(__FILE__))
config["rubyhdrdir"] = File.join(mkconfig["top_srcdir"], "include")
mkconfig["libdir"] = config["libdir"] = mkconfig["topdir"]
- mkconfig["archdir"] = config["archdir"] = File.expand_path(File.dirname(__FILE__))
untrace_var(:$extmk, prehook)
end
trace_var(:$extmk, prehook)
posthook = proc do
+ config = RbConfig::CONFIG
+ mkconfig = RbConfig::MAKEFILE_CONFIG
+ extout = File.expand_path(mkconfig["EXTOUT"], mkconfig["builddir"])
+ $arch_hdrdir = "#{extout}/include/$(arch)"
$ruby = baseruby
- $arch_hdrdir = "$(extout)/include/$(arch)"
untrace_var(:$ruby, posthook)
end
trace_var(:$ruby, posthook)