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 22:22:06 +0000
commit74ede189c1518cfc0bd78b95cfb2b85a6a33178c (patch)
treeab0fa69f8f6bcc91dab4e76a3e06a8da346de702 /ruby
parent1ca0c5ae4b7f74f7de9cc9ea7deb1f01d1c3392f (diff)
downloadlibguestfs-74ede189c1518cfc0bd78b95cfb2b85a6a33178c.tar.gz
libguestfs-74ede189c1518cfc0bd78b95cfb2b85a6a33178c.tar.xz
libguestfs-74ede189c1518cfc0bd78b95cfb2b85a6a33178c.zip
ruby: Use RbConfig instead of Config.
I have checked, and this works with Ruby 1.8 as well. (cherry picked from commit 3b78b3a8496cdd66567b6f433206273966858e74)
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)