summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-21 14:07:21 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-07-21 14:07:21 +0000
commit2527936cfcbe042678883ee5a87bfb6984702deb (patch)
treead47fcb9b6cc631c9cd94fee9593fa9914c305cd /template
parent6113a5add0a05eea33935fb9dd95a8c8e5c2755d (diff)
* template/fake.rb.in: get rid of embeding an absolute path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'template')
-rwxr-xr-xtemplate/fake.rb.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/template/fake.rb.in b/template/fake.rb.in
index e47cb4d..cdc999a 100755
--- a/template/fake.rb.in
+++ b/template/fake.rb.in
@@ -30,9 +30,10 @@ prehook = proc do |extmk|
unless extmk
config = RbConfig::CONFIG
mkconfig = RbConfig::MAKEFILE_CONFIG
- mkconfig["top_srcdir"] = $top_srcdir = File.expand_path("@abs_top_srcdir@")
+ builddir = File.expand_path(File.dirname(__FILE__))
+ mkconfig["top_srcdir"] = $top_srcdir = File.expand_path("@top_srcdir@", builddir)
mkconfig["rubyhdrdir"] = "$(top_srcdir)/include"
- mkconfig["builddir"] = config["builddir"] = File.expand_path(File.dirname(__FILE__))
+ mkconfig["builddir"] = config["builddir"] = builddir
config["rubyhdrdir"] = File.join(mkconfig["top_srcdir"], "include")
mkconfig["libdir"] = config["libdir"] = mkconfig["topdir"]
trace_var(:$ruby, posthook)