mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 02:45:22 +00:00
THRIFT-2602:Fix missing dist files
Client: ruby Patch: jfarrell fix ruby extension to use RBConfig to work with newer versions of ruby
This commit is contained in:
parent
750df2ec4c
commit
ef7d56c1d6
@ -21,8 +21,10 @@ if defined?(RUBY_ENGINE) && RUBY_ENGINE =~ /jruby/
|
||||
File.open('Makefile', 'w'){|f| f.puts "all:\n\ninstall:\n" }
|
||||
else
|
||||
require 'mkmf'
|
||||
require 'rbconfig'
|
||||
|
||||
$ARCH_FLAGS = RbConfig::CONFIG['CFLAGS'].scan( /(-arch )(\S+)/ ).map{|x,y| x + y + ' ' }.join('')
|
||||
|
||||
$ARCH_FLAGS = Config::CONFIG['CFLAGS'].scan( /(-arch )(\S+)/ ).map{|x,y| x + y + ' ' }.join('')
|
||||
|
||||
$CFLAGS = "-fsigned-char -g -O2 -Wall -Werror " + $ARCH_FLAGS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user