From 5f87c7c69c32009edab41710055c262ad4a8f388 Mon Sep 17 00:00:00 2001 From: Jay Lawrence Date: Tue, 19 Mar 2019 09:16:17 -0400 Subject: [PATCH] Older versions of JRuby do not load RbConfig by default --- extconf.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/extconf.rb b/extconf.rb index 743b1eb..aff37e4 100644 --- a/extconf.rb +++ b/extconf.rb @@ -1,3 +1,4 @@ +require 'rbconfig' mf = File.read('Makefile') mf = mf.gsub(/^BINDIR\s*=.*$/, "BINDIR = #{RbConfig::CONFIG['bindir']}") mf = mf.gsub(/^PREFIX\s*=.*$/, "PREFIX = #{File.dirname(RbConfig::CONFIG['libdir'])}")