diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-26 07:42:13 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-26 07:42:13 +0000 |
commit | 70658c387db666e3f388d0ee63cacd538997bfcc (patch) | |
tree | 4474a7b02c414aa4a79fbbcbeaf612883ba08e82 /lib/mkmf.rb | |
parent | 86b65861cd7a7e60674478820e3ff7c15fa0e9c0 (diff) |
mkmf.rb: use expanded values
* lib/mkmf.rb: should use expanded values for header directories
unless extmk. patch by vo.x (Vit Ondruch) at [ruby-core:55653]
[Bug #8115], rhbz#921650.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/mkmf.rb')
-rw-r--r-- | lib/mkmf.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb index 48562aafe0..146225d4d5 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -235,11 +235,10 @@ module MakeMakefile path = dir end $extmk ||= false - if not $extmk and File.exist?(RbConfig::CONFIG["rubyhdrdir"] + "/ruby/ruby.h") - $hdrdir = CONFIG["rubyhdrdir"] + if not $extmk and File.exist?(($hdrdir = RbConfig::CONFIG["rubyhdrdir"]) + "/ruby/ruby.h") $topdir = $hdrdir $top_srcdir = $hdrdir - $arch_hdrdir = CONFIG["rubyarchhdrdir"] + $arch_hdrdir = RbConfig::CONFIG["rubyarchhdrdir"] elsif File.exist?(($hdrdir = ($top_srcdir ||= topdir) + "/include") + "/ruby.h") $topdir ||= RbConfig::CONFIG["topdir"] $arch_hdrdir = "$(extout)/include/$(arch)" |