blob: 63851b891fd261a907d293717312b33a33960bcd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
$NetBSD: patch-rake_rakeconfigure.rb,v 1.1 2015/09/27 06:41:06 taca Exp $
--- rake/rakeconfigure.rb.orig 2009-09-08 20:36:50.000000000 +0000
+++ rake/rakeconfigure.rb
@@ -33,29 +33,29 @@ $excluded_classes = ENV['WXRUBY_EXCLUDED
# Get ruby's info on how it was built
require "rbconfig"
-$ruby_cppflags = Config::CONFIG["CFLAGS"]
+$ruby_cppflags = RbConfig::CONFIG["CFLAGS"]
# Ruby 1.9.0 changes location of some header files
if RUBY_VERSION >= "1.9.0"
- includes = [ Config::CONFIG["rubyhdrdir"],
- Config::CONFIG["sitehdrdir"],
- Config::CONFIG["vendorhdrdir"],
- File.join(Config::CONFIG["rubyhdrdir"],
- Config::CONFIG['arch']) ]
+ includes = [ RbConfig::CONFIG["rubyhdrdir"],
+ RbConfig::CONFIG["sitehdrdir"],
+ RbConfig::CONFIG["vendorhdrdir"],
+ File.join(RbConfig::CONFIG["rubyhdrdir"],
+ RbConfig::CONFIG['arch']) ]
$ruby_includes = " -I. -I " + includes.join(' -I ')
else
- $ruby_includes = " -I. -I " + Config::CONFIG["archdir"]
+ $ruby_includes = " -I. -I " + RbConfig::CONFIG["archdir"]
end
-$ruby_ldflags = Config::CONFIG["LDFLAGS"]
-$ruby_libs = Config::CONFIG["LIBS"]
+$ruby_ldflags = RbConfig::CONFIG["LDFLAGS"]
+$ruby_libs = RbConfig::CONFIG["LIBS"]
$extra_cppflags = ""
$extra_ldflags = ""
$extra_objs = ""
$extra_libs = ""
$cpp_out_flag = "-o "
$link_output_flag = "-o "
-OBJ_EXT = Config::CONFIG["OBJEXT"]
+OBJ_EXT = RbConfig::CONFIG["OBJEXT"]
# This is now set with the detection of WXRUBY_EXCLUDED
# some classes are not implemented by WxWidgets on all platforms
|