Commit 43da474c authored by Aman Gupta's avatar Aman Gupta

fix Config deprecation for ruby 2.2

parent 92e12395
......@@ -22,7 +22,7 @@ unless File.exists?("#{CWD}/dst/#{libdir}/libmsgpackc.a")
cc = ENV['CC']
# build fat binaries on osx
if RUBY_PLATFORM =~ /darwin/ and (archs = Config::CONFIG['LDFLAGS'].scan(/(-arch\s+.+?)(?:\s|$)/).flatten).any?
if RUBY_PLATFORM =~ /darwin/ and (archs = RbConfig::CONFIG['LDFLAGS'].scan(/(-arch\s+.+?)(?:\s|$)/).flatten).any?
ENV['CFLAGS'] = "#{cflags} #{archs.join(' ')}"
ENV['LDFLAGS'] = "#{ldflags} #{archs.join(' ')}"
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment