summaryrefslogtreecommitdiff
path: root/template/fake.rb.in
diff options
context:
space:
mode:
Diffstat (limited to 'template/fake.rb.in')
-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 e47cb4d759..cdc999a821 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)