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 | |
parent | 86b65861cd7a7e60674478820e3ff7c15fa0e9c0 (diff) | |
download | ruby-70658c387db666e3f388d0ee63cacd538997bfcc.tar.gz |
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
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | lib/mkmf.rb | 5 |
2 files changed, 8 insertions, 3 deletions
@@ -1,3 +1,9 @@ +Wed Jun 26 16:42:11 2013 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * 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. + Wed Jun 26 12:48:22 2013 Tanaka Akira <akr@fsij.org> * bignum.c (bigxor_int): Fix a buffer over read. 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)" |