freeswitch/libs/esl/ruby/cflags.rb

9 lines
320 B
Ruby
Raw Normal View History

2014-02-07 14:10:08 -05:00
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"]} -I#{RbConfig::CONFIG['rubyhdrdir']} -I#{RbConfig::CONFIG['rubyhdrdir']}/#{RbConfig::CONFIG['arch']}"
2014-02-07 14:10:08 -05:00
end
puts cflags