summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-07 15:21:04 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-07 15:21:04 +0000
commit3b7de4c4b51b9c15f5aafc0b6187cca8a9f14858 (patch)
tree55bc9554e4dc729ff0d9f5b6270d6417ffc175d0
parent551d43dbeea9af1d65e800e96336aec2c82e4227 (diff)
downloadruby-3b7de4c4b51b9c15f5aafc0b6187cca8a9f14858.tar.gz
ruby-3b7de4c4b51b9c15f5aafc0b6187cca8a9f14858.tar.xz
ruby-3b7de4c4b51b9c15f5aafc0b6187cca8a9f14858.zip
* ext/extmk.rb (extmake): top_srcdir is based from ext directory.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ext/extmk.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb
index d7d4d2fbd..dd3bcfeb2 100644
--- a/ext/extmk.rb
+++ b/ext/extmk.rb
@@ -117,7 +117,7 @@ def extmake(target)
unless $ignore
Config::CONFIG["srcdir"] = $srcdir
Config::CONFIG["topdir"] = $topdir
- CONFIG["hdrdir"] = ($hdrdir == top_srcdir) ? top_srcdir : "$(topdir)/"+top_srcdir
+ CONFIG["hdrdir"] = ($hdrdir == top_srcdir) ? top_srcdir : "$(topdir)"+top_srcdir[2..-1]
CONFIG["srcdir"] = "$(hdrdir)/ext/#{$mdir}"
CONFIG["topdir"] = $topdir
begin