Skip to content

Commit 090f0c5

Browse files
author
Charlie Savage
committed
Remove warnings.
1 parent 4194712 commit 090f0c5

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

ext/libxslt/extconf.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
require 'rubygems'
99
$preload = nil
1010
$INCFLAGS << " -I/usr/local/include"
11-
$LIBPATH.push(Config::CONFIG['libdir'])
11+
$LIBPATH.push(RbConfig::CONFIG['libdir'])
1212

1313
def crash(str)
1414
print(" extconf failure: %s\n", str)
@@ -131,19 +131,19 @@ def crash(str)
131131
"#{gem_spec.full_gem_path}/ext/libxml"]
132132

133133
# No need to link xml_ruby on OS X
134-
unless Config::CONFIG['host_os'].match(/darwin/)
134+
unless RbConfig::CONFIG['host_os'].match(/darwin/)
135135
# Hack to make sure ruby library is *after* xml_ruby library
136136
$LIBS = "#{$LIBRUBYARG_STATIC} #{$LIBS}"
137137

138138
libraries = ["xml_ruby", # Linux
139139
":libxml_ruby.so", # mingw
140-
"libxml_ruby-#{Config::CONFIG["arch"]}"] # mswin
140+
"libxml_ruby-#{RbConfig::CONFIG["arch"]}"] # mswin
141141

142-
library = libraries.detect do |library|
142+
libxml_library = libraries.detect do |library|
143143
find_library(library, "Init_libxml_ruby", *paths)
144144
end
145145

146-
unless library
146+
unless libxml_library
147147
crash(<<-EOL)
148148
Need libxml-ruby
149149
Please install libxml-ruby or specify the path to the gem via:

0 commit comments

Comments
 (0)