diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-07-09 09:07:42 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-07-09 09:07:42 +0000 |
commit | 937b2747257f0919a1560b8b7e3ebe70ec620c6f (patch) | |
tree | a25d59bd43ae709e9cf406c4418f81cc285487d6 /lib | |
parent | 37ec170d29580c3d430d5190884c52ae7b413773 (diff) | |
download | ruby-937b2747257f0919a1560b8b7e3ebe70ec620c6f.tar.gz ruby-937b2747257f0919a1560b8b7e3ebe70ec620c6f.tar.xz ruby-937b2747257f0919a1560b8b7e3ebe70ec620c6f.zip |
* lib/mkmf.rb (create_makefile): prevent substitution of macro
definition. fixed: http://www.yotabanana.com/lab/20060624.html#p02
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mkmf.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb index c72388ab6..497a14424 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -1248,7 +1248,7 @@ site-install-rb: install-rb suffixes << m[1] << m[2] implicit = [[m[1], m[2]], [m.post_match]] next - elsif RULE_SUBST and /\A[$\w][^#]*:/ =~ line + elsif RULE_SUBST and /\A(?!\s*\w+\s*=)[$\w][^#]*:/ =~ line line.gsub!(%r"(?<=\s)(?!\.)([^$(){}+=:\s\/\\,]+)(?=\s|\z)") {|*m| RULE_SUBST % m} end depout << line |