mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-05 18:44:54 +00:00
9 lines
320 B
Ruby
9 lines
320 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"]} -I#{RbConfig::CONFIG['rubyhdrdir']} -I#{RbConfig::CONFIG['rubyhdrdir']}/#{RbConfig::CONFIG['arch']}"
|
|
end
|
|
puts cflags
|