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