summaryrefslogtreecommitdiff
path: root/databases/ruby-bdb/files/patch-src-extconf.rb
blob: e81cca6269ce4247e2ffa710b92073efdf7d62e3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- src/extconf.rb.orig	2015-01-22 16:09:31 UTC
+++ src/extconf.rb
@@ -36,16 +36,16 @@
 
 if unknown = enable_config("unknown")
    libs = if CONFIG.key?("LIBRUBYARG_STATIC")
-	     Config::expand(CONFIG["LIBRUBYARG_STATIC"].dup).sub(/^-l/, '')
+	     RbConfig::expand(CONFIG["LIBRUBYARG_STATIC"].dup).sub(/^-l/, '')
 	  else
-	     Config::expand(CONFIG["LIBRUBYARG"].dup).sub(/lib([^.]*).*/, '\\1')
+	     RbConfig::expand(CONFIG["LIBRUBYARG"].dup).sub(/lib([^.]*).*/, '\\1')
 	  end
    unknown = find_library(libs, "ruby_init", 
-			  Config::expand(CONFIG["archdir"].dup))
+			  RbConfig::expand(CONFIG["archdir"].dup))
 end
 
 inc_dir, lib_dir = dir_config("db", "/usr/include", "/usr/lib")
-case Config::CONFIG["arch"]
+case RbConfig::CONFIG["arch"]
 when /solaris2/
    $DLDFLAGS ||= ""
    $DLDFLAGS += " -R#{lib_dir}"