diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-11-14 14:06:58 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-11-14 14:06:58 +0100 |
commit | 384c6fc88e02314bb628f817ec2b51f4c6ffcb3e (patch) | |
tree | 7568b7f8c06527672a4b1680ffd20bc34e16faeb /tasks/constants.rb | |
parent | 285fa24544bf5feffb08b56deb03ec224f1726b4 (diff) | |
download | zorglub-384c6fc88e02314bb628f817ec2b51f4c6ffcb3e.zip zorglub-384c6fc88e02314bb628f817ec2b51f4c6ffcb3e.tar.gz |
tasks/constants use RBConfig instead of deprecated Config
Diffstat (limited to 'tasks/constants.rb')
-rw-r--r-- | tasks/constants.rb | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tasks/constants.rb b/tasks/constants.rb index 78a7625..045ed42 100644 --- a/tasks/constants.rb +++ b/tasks/constants.rb @@ -27,19 +27,19 @@ if USE_RAKE_COMPILER ENV['RUBY_CC_VERSION'] = '1.8.7:1.9.2' end -LIBEXT = case Config::CONFIG['host_os'].downcase +LIBEXT = case RBConfig::CONFIG['host_os'].downcase when /darwin/ "dylib" when /mswin|mingw/ "dll" else - Config::CONFIG['DLEXT'] + RBConfig::CONFIG['DLEXT'] end -CPU = case Config::CONFIG['host_cpu'].downcase +CPU = case RBConfig::CONFIG['host_cpu'].downcase when /i[3456]86/ # Darwin always reports i686, even when running in 64bit mode - if Config::CONFIG['host_os'] =~ /darwin/ && 0xfee1deadbeef.is_a?(Fixnum) + if RBConfig::CONFIG['host_os'] =~ /darwin/ && 0xfee1deadbeef.is_a?(Fixnum) "x86_64" else "i386" @@ -51,10 +51,10 @@ CPU = case Config::CONFIG['host_cpu'].downcase when /ppc|powerpc/ "powerpc" else - Config::CONFIG['host_cpu'] + RBConfig::CONFIG['host_cpu'] end -OS = case Config::CONFIG['host_os'].downcase +OS = case RBConfig::CONFIG['host_os'].downcase when /linux/ "linux" when /darwin/ @@ -68,12 +68,12 @@ OS = case Config::CONFIG['host_os'].downcase when /mswin|mingw/ "win32" else - Config::CONFIG['host_os'].downcase + RBConfig::CONFIG['host_os'].downcase end -CC=ENV['CC'] || Config::CONFIG['CC'] || "gcc" +CC=ENV['CC'] || RBConfig::CONFIG['CC'] || "gcc" -GMAKE = Config::CONFIG['host_os'].downcase =~ /bsd|solaris/ ? "gmake" : "make" +GMAKE = RBConfig::CONFIG['host_os'].downcase =~ /bsd|solaris/ ? "gmake" : "make" DIFF = if WIN32 then 'diff.exe' |