diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-01-13 05:58:44 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-01-13 05:58:44 +0000 |
commit | 0f78a6a1b94a7238140b0c64145df6baeded6968 (patch) | |
tree | 274d3ddea850e9d0d482e8cabc4c00de0492fccc /tool/rbinstall.rb | |
parent | 5dc87d5ba3093db578260b33d99ba00b500e7c95 (diff) | |
download | ruby-0f78a6a1b94a7238140b0c64145df6baeded6968.tar.gz |
rbinstall.rb: LIBRUBY_RELATIVE
* tool/rbinstall.rb: see LIBRUBY_RELATIVE in CONFIG instead of
reading config.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/rbinstall.rb')
-rwxr-xr-x | tool/rbinstall.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index a80be8aa38..bc061d8041 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -337,8 +337,7 @@ enable_shared = CONFIG["ENABLE_SHARED"] == 'yes' dll = CONFIG["LIBRUBY_SO", enable_shared] lib = CONFIG["LIBRUBY", true] arc = CONFIG["LIBRUBY_A", true] -config_h = File.read(CONFIG["EXTOUT"]+"/include/"+CONFIG["arch"]+"/ruby/config.h") -load_relative = config_h[/^\s*#\s*define\s+LOAD_RELATIVE\s+(\d+)/, 1].to_i.nonzero? +load_relative = CONFIG["LIBRUBY_RELATIVE"] == 'yes' install?(:local, :arch, :bin, :'bin-arch') do prepare "binary commands", bindir |