Permalink
Browse files

Apply same logic to Rakefile for RbConfig as found in lib/systemu.rb

  • Loading branch information...
1 parent eb2058b commit 0e4ff17bb71c4eebbb05c2db01f6c638acbe9a96 @parndt parndt committed Nov 6, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 Rakefile
View
@@ -277,7 +277,7 @@ BEGIN {
# discover full path to this ruby executable
#
- c = Config::CONFIG
+ c = begin; ::RbConfig::CONFIG; rescue NameError; ::Config::CONFIG; end
bindir = c["bindir"] || c['BINDIR']
ruby_install_name = c['ruby_install_name'] || c['RUBY_INSTALL_NAME'] || 'ruby'
ruby_ext = c['EXEEXT'] || ''

0 comments on commit 0e4ff17

Please sign in to comment.