From 4fed2e6690b1486952b0543b6bde28573eb0d132 Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Wed, 14 Jan 2015 09:31:41 +0000 Subject: [PATCH] Use -rrbconfig rather than -rmkmf to load rbconfig Both seem to work, but it's better to ask for the module we actually want rather than rely on it being pulled in indirectly. See #305. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 911d364f5..b0c7e869d 100644 --- a/configure.ac +++ b/configure.ac @@ -1508,7 +1508,7 @@ if test -n "$RUBY"; then # Try Ruby1.9+ first RUBYDIR=`($RUBY -rrbconfig -e 'print RbConfig::CONFIG[["rubyhdrdir"]] || $rubyhdrdir') 2>/dev/null` if test x"$RUBYDIR" = x"" || test x"$RUBYDIR" = x"nil"; then - RUBYDIR=`($RUBY -rmkmf -e 'print RbConfig::CONFIG[["archdir"]] || $archdir') 2>/dev/null` + RUBYDIR=`($RUBY -rrbconfig -e 'print RbConfig::CONFIG[["archdir"]] || $archdir') 2>/dev/null` else RUBYARCH=`($RUBY -rrbconfig -e 'print RbConfig::CONFIG[["arch"]] || $arch') 2>/dev/null` fi