blob: ab23d51146446e1a5fd634406aa78685ee5b0b64 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
require 'rbconfig'
if ARGV.include?('--cflags')
if Config::CONFIG["rubyhdrdir"]
rubyhdrdir = Config::CONFIG["rubyhdrdir"]
arch = Config::CONFIG["arch"]
puts "-I#{rubyhdrdir} -I#{rubyhdrdir}/#{arch}"
else
puts '-I' + Config::CONFIG["archdir"]
end
end
if ARGV.include?('--libs')
puts Config::CONFIG["LIBRUBYARG"] || "-l" + Config::CONFIG["ruby_install_name"]
end
|