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