ef51c4
From 346e147ba6480839b87046e9a9efab0bf6ed3660 Mon Sep 17 00:00:00 2001
ef51c4
From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <vondruch@redhat.com>
ef51c4
Date: Wed, 10 Aug 2016 17:35:48 +0200
ef51c4
Subject: [PATCH] Rely on ldd to detect glibc.
ef51c4
ef51c4
This is just workaround, since we know we are quite sure this will be successful
ef51c4
on Red Hat platforms.
ef51c4
ef51c4
This workaround rhbz#1361037
ef51c4
---
ef51c4
 test/fiddle/helper.rb |    3 +++
ef51c4
 1 file changed, 3 insertions(+)
ef51c4
ef51c4
diff --git a/test/fiddle/helper.rb b/test/fiddle/helper.rb
ef51c4
index 1da3d93..65148a1 100644
ef51c4
--- a/test/fiddle/helper.rb
ef51c4
+++ b/test/fiddle/helper.rb
ef51c4
@@ -139,6 +139,9 @@
ef51c4
   libc_so = libm_so = "/usr/lib/libSystem.B.dylib"
ef51c4
 end
ef51c4
 
ef51c4
+# Just ignore the heuristic, because it is not reliable on all platforms.
ef51c4
+libc_so = libm_so = nil
ef51c4
+
ef51c4
 if !libc_so || !libm_so
ef51c4
   ruby = EnvUtil.rubybin
ef51c4
   # When the ruby binary is 32-bit and the host is 64-bit,
ef51c4
-- 
ef51c4
2.9.2
ef51c4