blob: b29df122f1ce09fa57db47d01ff407406acc5bb4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
$NetBSD: patch-extconf.rb,v 1.1 2017/09/18 02:36:01 taca Exp $
Use modern module name.
--- extconf.rb.orig 2009-02-01 08:31:18.000000000 +0000
+++ extconf.rb
@@ -37,9 +37,9 @@ File.open("conftest.c", "w") do |f|
f.puts src
end
if defined? cpp_command then
- cpp = Config.expand(cpp_command(''))
+ cpp = RbConfig.expand(cpp_command(''))
else
- cpp = Config.expand sprintf(CPP, $CPPFLAGS, $CFLAGS, '')
+ cpp = RbConfig.expand sprintf(CPP, $CPPFLAGS, $CFLAGS, '')
end
if /mswin32/ =~ RUBY_PLATFORM && !/-E/.match(cpp)
cpp << " -E"
|