From 0f78a6a1b94a7238140b0c64145df6baeded6968 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 13 Jan 2017 05:58:44 +0000 Subject: 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 --- tool/rbinstall.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tool/rbinstall.rb') 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 -- cgit v1.2.3