summaryrefslogtreecommitdiffstats
path: root/ruby
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-03-03 18:40:42 +0000
committerRichard W.M. Jones <rjones@redhat.com>2012-03-03 18:40:42 +0000
commit3b78b3a8496cdd66567b6f433206273966858e74 (patch)
tree47bdfd94c87f66929186dde0f63af2ed5c2cc953 /ruby
parent5e8a4627d9f0d313485f186a63dc2250f6fd5c01 (diff)
downloadlibguestfs-3b78b3a8496cdd66567b6f433206273966858e74.tar.gz
libguestfs-3b78b3a8496cdd66567b6f433206273966858e74.tar.xz
libguestfs-3b78b3a8496cdd66567b6f433206273966858e74.zip
ruby: Use RbConfig instead of Config.
I have checked, and this works with Ruby 1.8 as well.
Diffstat (limited to 'ruby')
-rw-r--r--ruby/Makefile.am4
1 files changed, 2 insertions, 2 deletions
diff --git a/ruby/Makefile.am b/ruby/Makefile.am
index 361277e1..c4b680f6 100644
--- a/ruby/Makefile.am
+++ b/ruby/Makefile.am
@@ -54,8 +54,8 @@ all: $(generator_built)
$(RAKE) build
$(RAKE) rdoc
-RUBY_SITELIB := $(shell $(RUBY) -rrbconfig -e "puts Config::CONFIG['sitelibdir']")
-RUBY_SITEARCH := $(shell $(RUBY) -rrbconfig -e "puts Config::CONFIG['sitearchdir']")
+RUBY_SITELIB := $(shell $(RUBY) -rrbconfig -e "puts RbConfig::CONFIG['sitelibdir']")
+RUBY_SITEARCH := $(shell $(RUBY) -rrbconfig -e "puts RbConfig::CONFIG['sitearchdir']")
install:
$(MKDIR_P) $(DESTDIR)$(RUBY_SITELIB)