File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88require 'rubygems'
99$preload = nil
1010$INCFLAGS << " -I/usr/local/include"
11- $LIBPATH. push ( Config ::CONFIG [ 'libdir' ] )
11+ $LIBPATH. push ( RbConfig ::CONFIG [ 'libdir' ] )
1212
1313def 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:
You can’t perform that action at this time.
0 commit comments