freeswitch/libs/esl/ruby/cflags.rb
Brian West 3c55a90076 ESL-66
2014-02-07 13:10:25 -06:00

8 lines
219 B
Ruby

require 'rbconfig'
cflags = if RUBY_VERSION =~ /1.9/ then
"-I#{RbConfig::CONFIG['rubyhdrdir']} -I#{RbConfig::CONFIG['rubyhdrdir']}/#{RbConfig::CONFIG['arch']}"
else
"-I#{RbConfig::CONFIG["topdir"]}"
end
puts cflags