diff options
| author | Steve Wills <swills@FreeBSD.org> | 2015-03-30 13:16:20 +0000 |
|---|---|---|
| committer | Steve Wills <swills@FreeBSD.org> | 2015-03-30 13:16:20 +0000 |
| commit | b4b3c4d8ab8f99a5714554f47fb247bd9181e029 (patch) | |
| tree | e98e3e8deb2d5f3f95f7a6302193eae727cf1466 /databases/ruby-bdb/files/patch-src-extconf.rb | |
| parent | Update to 0.9.11.17.986 (diff) | |
databases/ruby-bdb: fix build with ruby 2.1 and 2.2
With hat: ruby@
Diffstat (limited to '')
| -rw-r--r-- | databases/ruby-bdb/files/patch-src-extconf.rb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/databases/ruby-bdb/files/patch-src-extconf.rb b/databases/ruby-bdb/files/patch-src-extconf.rb new file mode 100644 index 000000000000..edafdee39408 --- /dev/null +++ b/databases/ruby-bdb/files/patch-src-extconf.rb @@ -0,0 +1,23 @@ +--- src/extconf.rb.orig 2015-01-22 16:09:31.000000000 +0000 ++++ src/extconf.rb 2015-01-22 16:09:34.000000000 +0000 +@@ -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}" |
