2014-02-07 19:10:08 +00:00
|
|
|
require 'rbconfig'
|
|
|
|
|
|
|
|
cflags = if RUBY_VERSION =~ /1.9/ then
|
|
|
|
"-I#{RbConfig::CONFIG['rubyhdrdir']} -I#{RbConfig::CONFIG['rubyhdrdir']}/#{RbConfig::CONFIG['arch']}"
|
|
|
|
else
|
2014-04-07 19:27:24 +00:00
|
|
|
"-I#{RbConfig::CONFIG["topdir"]} -I#{RbConfig::CONFIG['rubyhdrdir']} -I#{RbConfig::CONFIG['rubyhdrdir']}/#{RbConfig::CONFIG['arch']}"
|
2014-02-07 19:10:08 +00:00
|
|
|
end
|
2014-04-07 19:27:24 +00:00
|
|
|
puts cflags
|