summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-08 11:18:17 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-04-08 11:18:17 +0000
commita02c93b3999e649d1603774c8e03d1ec26cb47d9 (patch)
tree9d0681366667321c06ee03fbf367bc65319debde /lib
parent0c25a62834bee7ad2e92464f4ac71538cddbe275 (diff)
* ext/extmk.rb (extmake): hdrdir needs to be defined also in
Config::CONFIG. * lib/mkmf.rb (configuration, create_makefile): get rid of recursive macro reference. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/mkmf.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index 1541d0cef8..54f3812798 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -847,7 +847,7 @@ SHELL = /bin/sh
#### Start of system configuration section. ####
-srcdir = #{srcdir}
+srcdir = #{srcdir.gsub(/\$\((srcdir)\)|\$\{(srcdir)\}/) {CONFIG[$1||$2]}}
topdir = #{$extmk ? CONFIG["topdir"] : $topdir}
hdrdir = #{$extmk ? CONFIG["hdrdir"] : '$(topdir)'}
VPATH = #{vpath.join(CONFIG['PATH_SEPARATOR'])}
@@ -939,7 +939,7 @@ def create_makefile(target, srcprefix = nil)
target_prefix = ""
end
- srcprefix ||= CONFIG['srcdir']
+ srcprefix ||= '$(srcdir)'
Config::expand(srcdir = srcprefix.dup)
if not $objs