Blame SOURCES/ruby-2.3.1-Rely-on-ldd-to-detect-glibc.patch

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